mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
update
This commit is contained in:
parent
489a6fe1fd
commit
abfcf79cdf
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user