mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-06 20:53:36 -08:00
update nvim config
This commit is contained in:
@@ -6,29 +6,27 @@ cfg = {
|
||||
|
||||
bind = true, -- This is mandatory, otherwise border config won't get registered.
|
||||
-- If you want to hook lspsaga or other signature handler, pls set to false
|
||||
doc_lines = 10, -- will show two lines of comment/doc(if there are more than two lines in doc, will be truncated);
|
||||
doc_lines = 12, -- will show two lines of comment/doc(if there are more than two lines in doc, will be truncated);
|
||||
-- set to 0 if you DO NOT want any API comments be shown
|
||||
-- This setting only take effect in insert mode, it does not affect signature help in normal
|
||||
-- mode, 10 by default
|
||||
|
||||
floating_window = true, -- show hint in a floating window, set to false for virtual text only mode
|
||||
|
||||
floating_window_above_cur_line = true, -- try to place the floating above the current line when possible Note:
|
||||
-- will set to true when fully tested, set to false will use whichever side has more space
|
||||
-- this setting will be helpful if you do not want the PUM and floating win overlap
|
||||
|
||||
floating_window_off_x = 1, -- adjust float windows x position.
|
||||
floating_window_off_y = 1, -- adjust float windows y position.
|
||||
|
||||
floating_window_off_y = -1, -- adjust float windows y position.
|
||||
|
||||
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_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
|
||||
max_height = 15, -- max height of signature floating_window, if content is more than max_height, you can scroll down
|
||||
-- to view the hiding contents
|
||||
max_width = 40, -- max_width of signature floating_window, line will be wrapped if exceed max_width
|
||||
max_width = 85, -- max_width of signature floating_window, line will be wrapped if exceed max_width
|
||||
handler_opts = {
|
||||
border = "rounded" -- double, rounded, single, shadow, none
|
||||
},
|
||||
|
||||
@@ -185,7 +185,7 @@ lsp_installer.on_server_ready(function(server)
|
||||
end)
|
||||
|
||||
|
||||
local servers = { 'jedi_language_server', 'bashls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'rust_analyzer', 'clangd', 'ansiblels' }
|
||||
local servers = { 'jedi_language_server', 'bashls', 'vimls', 'yamlls', 'dockerls', 'sumneko_lua', 'rust_analyzer', 'clangd', 'ansiblels' }
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
@@ -196,4 +196,4 @@ for _, lsp in pairs(servers) do
|
||||
}
|
||||
end
|
||||
|
||||
require 'lspconfig'.bashls.setup {}
|
||||
-- require 'lspconfig'.bashls.setup {}
|
||||
|
||||
@@ -43,6 +43,7 @@ require("null-ls").setup({
|
||||
}),
|
||||
null_ls.builtins.formatting.black,
|
||||
null_ls.builtins.formatting.isort,
|
||||
-- null_ls.builtins.formatting.tidy
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user