Compare commits

..

No commits in common. "78b7069aa72ba7e4807c6fe416aaabf3d12d1f2c" and "cec47a2328353921569cb6af5bcbbc3f3d99eb72" have entirely different histories.

2 changed files with 70 additions and 4 deletions

View File

@ -293,6 +293,72 @@ let g:vim_markdown_fenced_languages = ['bash=sh']
" ------------------------------------------------------------------------------
" get rid
" #coc.nvim{{{
" https://github.com/neoclide/coc.nvim
" SEE BOTTOM OF THIS FILE FOR coc#add_extension statement
" for some reason fails when added some other places
" Plug 'neoclide/coc.nvim', {'branch': 'release', 'do': { -> coc#util#install()}}
" let g:coc_snippet_next = '<tab>'
" let g:coc_snippet_prev = '<s-tab>'
" inoremap <silent><expr> <c-n> coc#refresh()
nnoremap <silent> <silent> <space><space> :call CocAction('doHover')<CR>
nnoremap <silent> <space>cf :call CocAction('doQuickfix')<CR>
nnoremap <silent> <space>cg :call CocAction('jumpDefinition')<CR>
nnoremap <silent> <space>ci :call CocAction('jumpImplementation')<CR>
nnoremap <silent> <space>cr :call CocAction('jumpReferences')<CR>
nnoremap <silent> <space>cm :call CocAction('rename')<CR>
nnoremap <silent> <space>ca :call CocAction('codeAction')<CR>
nnoremap <silent> <space>cs :call CocAction('documentSymbols')<CR>
nnoremap <silent> <space>cS :call CocAction('workspaceSymbols')<CR>
nnoremap <silent> ]c :call CocAction('diagnosticNext')<CR>
nnoremap <silent> [c :call CocAction('diagnosticPrevious')<CR>
command! -nargs=0 Format :call CocAction('format')
command! -nargs=? Fold :call CocAction('fold', <f-args>)
" }}}
" #polyglot{{{
" https://github.com/sheerun/vim-polyglot
" Plug 'sheerun/vim-polyglot'
" vue options
" let g:vue_disable_pre_processors=0
" set custom syntax highlighting
" augroup fixhighlighting
" autocmd!
" autocmd BufNewFile,BufRead *.vue syntax sync fromstart
" augroup END
"}}}
" #echodoc.vim{{{
" https://github.com/Shougo/echodoc.vim
" display function signatures fromm completions in the command line
" Plug 'Shougo/echodoc.vim'
"}}}
" #rainbow{{{
" https://github.com/luochen1990/rainbow/blob/master/README.md
" Plug 'luochen1990/rainbow'
" let g:rainbow_active = 0
" nnoremap <cr>9 :RainbowToggle<cr>
" nnoremap <cr>( :RainbowToggle<cr>
"}}}
" #vim-easy-align {{{
" https://github.com/junegunn/vim-easy-align
" Plug 'junegunn/vim-easy-align'
"
" xmap ga <Plug>(EasyAlign)
" nmap ga <Plug>(EasyAlign)
"}}}
" #vim-git{{{
" https://github.com/tpope/vim-git
" Plug 'tpope/vim-git'
"}}}
call plug#end()
runtime macros/matchit.vim
@ -433,9 +499,9 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
-- buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
-- buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
-- buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)

View File

@ -252,7 +252,7 @@ set hidden
set hlsearch
set completeopt=menuone,noselect
set completeopt=menuone
set nospell
set spelllang=en_gb