Added eslint config
This commit is contained in:
parent
d8be2b09ac
commit
4dcab39d5b
2 changed files with 14 additions and 11 deletions
|
@ -1,15 +1,16 @@
|
||||||
{
|
{
|
||||||
"coc.preferences.formatOnSaveFiletypes": [
|
"coc.preferences.formatOnSaveFiletypes": [
|
||||||
"cpp",
|
"cpp",
|
||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
"typescriptreact",
|
"typescriptreact",
|
||||||
"json",
|
"json",
|
||||||
"markdown",
|
"markdown",
|
||||||
"python",
|
"python",
|
||||||
"rust",
|
"rust",
|
||||||
"toml",
|
"toml",
|
||||||
"yaml"
|
"yaml"
|
||||||
],
|
],
|
||||||
"clangd.path": "/home/mandlm/.config/coc/extensions/coc-clangd-data/install/11.0.0/clangd_11.0.0/bin/clangd"
|
"clangd.path": "/home/mandlm/.config/coc/extensions/coc-clangd-data/install/11.0.0/clangd_11.0.0/bin/clangd",
|
||||||
|
"eslint.format.enable": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,6 +159,7 @@ set updatetime=300
|
||||||
let g:coc_global_extensions = [
|
let g:coc_global_extensions = [
|
||||||
\ 'coc-clangd',
|
\ 'coc-clangd',
|
||||||
\ 'coc-cmake',
|
\ 'coc-cmake',
|
||||||
|
\ 'coc-eslint',
|
||||||
\ 'coc-html',
|
\ 'coc-html',
|
||||||
\ 'coc-json',
|
\ 'coc-json',
|
||||||
\ 'coc-python',
|
\ 'coc-python',
|
||||||
|
@ -174,6 +175,7 @@ nnoremap <silent> K :call CocAction('doHover')<CR>
|
||||||
|
|
||||||
nmap <silent> gd <Plug>(coc-definition)
|
nmap <silent> gd <Plug>(coc-definition)
|
||||||
nmap <silent> gr <Plug>(coc-references)
|
nmap <silent> gr <Plug>(coc-references)
|
||||||
|
nmap <silent> ga <Plug>(coc-codeaction)
|
||||||
nmap <silent> <leader>rn <Plug>(coc-rename)
|
nmap <silent> <leader>rn <Plug>(coc-rename)
|
||||||
|
|
||||||
" use <tab> for trigger completion and navigate to the next complete item
|
" use <tab> for trigger completion and navigate to the next complete item
|
||||||
|
|
Loading…
Reference in a new issue