diff --git a/nvim/keybindings.vim b/nvim/keybindings.vim index d20d4c0..5e10034 100644 --- a/nvim/keybindings.vim +++ b/nvim/keybindings.vim @@ -19,8 +19,7 @@ nmap :NvimTreeToggle nnoremap // :Lines nnoremap ?? :BLines -nmap ca :lua vim.lsp.buf.code_action() - +nmap gA :lua vim.lsp.buf.declaration() nmap gD :lua vim.lsp.buf.declaration() nmap gF :edit nmap gT :lua vim.lsp.buf.type_definition() @@ -43,6 +42,7 @@ nmap bk :bdelete nmap bn :bnext nmap bp :bprev +nmap ca :lua vim.lsp.buf.code_action() nmap cd :LspDiagnostics nnoremap cn :DashboardNewFile diff --git a/nvim/plugin-confs/lsp-signature.lua b/nvim/plugin-confs/lsp-signature.lua index 318589f..c793f62 100644 --- a/nvim/plugin-confs/lsp-signature.lua +++ b/nvim/plugin-confs/lsp-signature.lua @@ -23,7 +23,7 @@ fix_pos = false, -- set to true, the floating window will not auto-close until finish all parameters hint_enable = true, -- virtual hint enable - hint_prefix = "🐼 ", -- Panda for parameter + hint_prefix = " ", -- Panda for parameter hint_scheme = "String", hi_parameter = "LspSignatureActiveParameter", -- how your parameter will be highlight max_height = 12, -- max height of signature floating_window, if content is more than max_height, you can scroll down diff --git a/nvim/plugin-confs/lspconfig.lua b/nvim/plugin-confs/lspconfig.lua index d2c5a5c..d3fa6e6 100644 --- a/nvim/plugin-confs/lspconfig.lua +++ b/nvim/plugin-confs/lspconfig.lua @@ -176,7 +176,7 @@ end) -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches -local servers = { 'pyright', 'bashls', 'sqls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'jsonls', 'dotls', 'rust_analyzer' } +local servers = { 'pyright', 'bashls', 'sqls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'jsonls', 'dotls', 'rust_analyzer', 'clangd' } for _, lsp in pairs(servers) do require('lspconfig')[lsp].setup { on_attach = on_attach,