updates
This commit is contained in:
parent
721e48df99
commit
dda7fdaf67
2
init.vim
2
init.vim
@ -36,7 +36,7 @@ source ~/.config/nvim/plugin-confs/nvim-cmp.lua
|
|||||||
source ~/.config/nvim/plugin-confs/fidget.lua
|
source ~/.config/nvim/plugin-confs/fidget.lua
|
||||||
source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
||||||
" source ~/.config/nvim/plugin-confs/copilot.lua
|
" source ~/.config/nvim/plugin-confs/copilot.lua
|
||||||
source ~/.config/nvim/plugin-confs/lsp-signature.lua
|
" source ~/.config/nvim/plugin-confs/lsp-signature.lua
|
||||||
" source ~/.config/nvim/plugin-confs/nvim-docs-view.lua
|
" source ~/.config/nvim/plugin-confs/nvim-docs-view.lua
|
||||||
|
|
||||||
" nvim and vim plugins
|
" nvim and vim plugins
|
||||||
|
@ -190,7 +190,7 @@ require('packer').startup(function(use)
|
|||||||
use {
|
use {
|
||||||
'onsails/lspkind-nvim'
|
'onsails/lspkind-nvim'
|
||||||
}
|
}
|
||||||
use 'ray-x/lsp_signature.nvim'
|
-- use 'ray-x/lsp_signature.nvim'
|
||||||
use {
|
use {
|
||||||
'rmagatti/goto-preview'
|
'rmagatti/goto-preview'
|
||||||
}
|
}
|
||||||
|
@ -12,33 +12,26 @@ cfg = {
|
|||||||
-- mode, 10 by default
|
-- mode, 10 by default
|
||||||
|
|
||||||
floating_window = true, -- show hint in a floating window, set to false for virtual text only mode
|
floating_window = true, -- show hint in a floating window, set to false for virtual text only mode
|
||||||
floating_window_above_cur_line = false, -- try to place the floating above the current line when possible Note:
|
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
|
-- 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
|
-- this setting will be helpful if you do not want the PUM and floating win overlap
|
||||||
|
floating_window_off_x = 0, -- adjust float windows x position.
|
||||||
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 = true, -- trueset to true, the floating window will not auto-close until finish all parameters
|
||||||
fix_pos = true, -- set to true, the floating window will not auto-close until finish all parameters
|
hint_enable = false, -- virtual hint enable
|
||||||
hint_enable = true, -- virtual hint enable
|
|
||||||
hint_prefix = " ", -- Panda for parameter
|
hint_prefix = " ", -- Panda for parameter
|
||||||
hint_scheme = "String",
|
hint_scheme = "String",
|
||||||
hi_parameter = "LspSignatureActiveParameter", -- how your parameter will be highlight
|
hi_parameter = "LspSignatureActiveParameter", -- how your parameter will be highlight
|
||||||
max_height = 15, -- 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 = 85, -- 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 = {
|
handler_opts = {
|
||||||
border = "rounded" -- double, rounded, single, shadow, none
|
border = "rounded" -- double, rounded, single, shadow, none
|
||||||
},
|
},
|
||||||
|
|
||||||
always_trigger = false, -- sometime show signature on new line or in middle of parameter can be confusing, set it to false for #58
|
always_trigger = false, -- sometime show signature on new line or in middle of parameter can be confusing, set it to false for #58
|
||||||
|
|
||||||
auto_close_after = nil, -- autoclose signature float win after x sec, disabled if nil.
|
auto_close_after = nil, -- autoclose signature float win after x sec, disabled if nil.
|
||||||
extra_trigger_chars = {}, -- Array of extra characters that will trigger signature completion, e.g., {"(", ","}
|
extra_trigger_chars = {}, -- Array of extra characters that will trigger signature completion, e.g., {"(", ","}
|
||||||
zindex = 200, -- by default it will be on top of all floating windows, set to <= 50 send it to bottom
|
zindex = 200, -- by default it will be on top of all floating windows, set to <= 50 send it to bottom
|
||||||
|
|
||||||
padding = '', -- character to pad on left and right of signature can be ' ', or '|' etc
|
padding = '', -- character to pad on left and right of signature can be ' ', or '|' etc
|
||||||
|
|
||||||
transparency = nil, -- disabled by default, allow floating win transparent value 1~100
|
transparency = nil, -- disabled by default, allow floating win transparent value 1~100
|
||||||
shadow_blend = 36, -- if you using shadow as border use this set the opacity
|
shadow_blend = 36, -- if you using shadow as border use this set the opacity
|
||||||
shadow_guibg = 'Black', -- if you using shadow as border use this set the color e.g. 'Green' or '#121315'
|
shadow_guibg = 'Black', -- if you using shadow as border use this set the color e.g. 'Green' or '#121315'
|
||||||
|
@ -13,7 +13,7 @@ require("null-ls").setup({
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
sources = {
|
sources = {
|
||||||
null_ls.builtins.completion.spell,
|
-- null_ls.builtins.completion.spell,
|
||||||
null_ls.builtins.completion.luasnip,
|
null_ls.builtins.completion.luasnip,
|
||||||
null_ls.builtins.code_actions.gitsigns,
|
null_ls.builtins.code_actions.gitsigns,
|
||||||
null_ls.builtins.code_actions.shellcheck,
|
null_ls.builtins.code_actions.shellcheck,
|
||||||
@ -49,6 +49,8 @@ require("null-ls").setup({
|
|||||||
}),
|
}),
|
||||||
null_ls.builtins.formatting.black,
|
null_ls.builtins.formatting.black,
|
||||||
null_ls.builtins.formatting.isort,
|
null_ls.builtins.formatting.isort,
|
||||||
|
null_ls.builtins.formatting.djlint,
|
||||||
|
null_ls.builtins.hover.printenv
|
||||||
-- null_ls.builtins.formatting.tidy
|
-- null_ls.builtins.formatting.tidy
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -175,7 +175,7 @@ cmp.setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls' }
|
local servers = { 'bashls', 'jedi_language_server', 'sqlls', 'jsonls', 'yamlls', 'vimls', 'dotls', 'dockerls', 'html', 'cssls' }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
-- on_attach = my_custom_on_attach,
|
-- on_attach = my_custom_on_attach,
|
||||||
|
@ -20,6 +20,7 @@ require('telescope').setup{
|
|||||||
["<C-h>"] = "which_key"
|
["<C-h>"] = "which_key"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_ignore_patterns = { "node_modules", "env", "__pycache__" }
|
||||||
},
|
},
|
||||||
pickers = {
|
pickers = {
|
||||||
-- Default configuration for builtin pickers goes here:
|
-- Default configuration for builtin pickers goes here:
|
||||||
|
Loading…
Reference in New Issue
Block a user