This commit is contained in:
ksyasuda 2022-02-12 23:27:15 -08:00
parent 489a6fe1fd
commit abfcf79cdf
3 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,7 @@ nmap <C-n> :NvimTreeToggle<CR>
nnoremap // :Lines<CR>
nnoremap ?? :BLines<CR>
nmap ca :lua vim.lsp.buf.code_action()<CR>
nmap gA :lua vim.lsp.buf.declaration()<CR>
nmap gD :lua vim.lsp.buf.declaration()<CR>
nmap gF :edit <cfile><cr>
nmap gT :lua vim.lsp.buf.type_definition()<CR>
@ -43,6 +42,7 @@ nmap <leader>bk :bdelete<CR>
nmap <leader>bn :bnext<CR>
nmap <leader>bp :bprev<CR>
nmap <leader>ca :lua vim.lsp.buf.code_action()<CR>
nmap <leader>cd :LspDiagnostics <bufnr><CR>
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>

View File

@ -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

View File

@ -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,