replace coc with lspconfig

This commit is contained in:
Robert Altner 2025-03-17 12:12:44 +01:00
parent fd48e88cc3
commit 389c1ee2e2
No known key found for this signature in database
GPG key ID: 58794C52DAF9EAD8
4 changed files with 93 additions and 22 deletions

View file

@ -12,15 +12,19 @@ map("n", "<F3>", ":NvimTreeFindFileToggle<CR>")
map("n", "<F4>", ":Buffers<CR>")
map("n", "<F2>", ":Outline<CR>")
map("n", "<leader>e", ":CocList diagnostics<CR>")
-- map("n", "<leader>e", ":CocList diagnostics<CR>")
map("n", "<C-P>", ":Telescope find_files<cr>")
map("n", "<leader>s", ":Telescope live_grep glob_pattern=*.{ts,html,c,cc,cpp,h,go,json,py,sh,lua,vim,rs,txt}<cr>")
map("n", "<leader>sc", ":noh<CR>")
map("n", "gs", ":call CocAction('jumpDefinition', 'split')<CR>")
map("n", "gt", ":CocCommand clangd.switchSourceHeader<CR>")
-- map("n", "gs", ":call CocAction('jumpDefinition', 'split')<CR>")
-- map("n", "gt", ":CocCommand clangd.switchSourceHeader<CR>")
--
map("n", "p<C-]>", "<cmd>lua require('goto-preview').goto_preview_definition()<CR>", {noremap=true})
map("n", "q<C-]>", "<cmd>lua require('goto-preview').close_all_win()<CR>", {noremap=true})
map("n", "r<C-]>", "<cmd>lua require('goto-preview').goto_preview_references()<CR>", {noremap=true})
map("n", "<leader>1", "1gt")
map("n", "<leader>2", "2gt")
@ -35,13 +39,13 @@ map("n", "<leader>0", ":tablast<cr>")
map("n", "<leader><F9>", ":call vimspector#ToggleBreakpoint( input( \"Enter condition: \" ) )<CR>")
map("", "<UP>", "<NOP>")
map("", "<DOWN>", "<NOP>")
map("", "<RIGHT>", "<NOP>")
map("", "<LEFT>", "<NOP>")
map("i", "<RIGHT>", "<NOP>")
map("i", "<LEFT>", "<NOP>")
-- map("", "<UP>", "<NOP>")
-- map("", "<DOWN>", "<NOP>")
-- map("", "<RIGHT>", "<NOP>")
-- map("", "<LEFT>", "<NOP>")
--
-- map("i", "<RIGHT>", "<NOP>")
-- map("i", "<LEFT>", "<NOP>")
map("n", "<leader>c", ":bo 15split +term<CR>")
map("n", "<leader>t", ":TodoTelescope theme=ivy<CR>")