fix: coc-action mapping, drop autoformat

This commit is contained in:
Andrejus
2021-03-28 12:43:28 +01:00
parent d87184c0c1
commit 850dc1102d
4 changed files with 9 additions and 22 deletions

View File

@@ -1,26 +1,4 @@
{
"coc.preferences.formatOnSaveFiletypes": [
"css",
"dockerfile",
"elm",
"html",
"javascript",
"javascriptreact",
"json",
"make",
"markdown",
"perl",
"python",
"sh",
"svg",
"tf",
"toml",
"typescript",
"typescriptreact",
"vim",
"xml",
"yaml"
],
"coc.preferences.extensionUpdateCheck": "daily",
"list.source.files.args": ["--hidden", "--files"],

View File

@@ -89,6 +89,7 @@ nmap <silent> <leader>E :CocCommand explorer --reveal expand('<sfile>')<cr>
" coc.nvim
" Ctrl-n - Go to next diagnostic
" Ctrl-p - Go to previous diagnostic
" <l>a - Open action list
" <l>c - Open command list
" <l>d - Jump to definition of current symbol
" <l>r - Jump to references of current symbol
@@ -98,6 +99,7 @@ nmap <silent> <leader>E :CocCommand explorer --reveal expand('<sfile>')<cr>
" <l>k - Symbol renaming
nmap <silent> <C-n> <Plug>(coc-diagnostic-next)
nmap <silent> <C-p> <Plug>(coc-diagnostic-prev)
nmap <silent> <leader>a <Plug>(coc-codeaction-line)
nmap <silent> <leader>d <Plug>(coc-definition)
nmap <silent> <leader>r <Plug>(coc-references)
nmap <silent> <leader>j <Plug>(coc-implementation)

View File

@@ -20,3 +20,8 @@ let g:loaded_python_provider = 0
" setlocal winhighlight=Normal:MarkdownError
" endif
" endfunction
"
" {{{
let g:startify_custom_header =
\ startify#pad(split(system('fortune | cowsay -f tux'), '\n'))
" }}}