trhing
This commit is contained in:
parent
5f7f4fae24
commit
c81ec8776f
4
init.lua
4
init.lua
|
|
@ -790,11 +790,9 @@ require('lazy').setup({
|
||||||
|
|
||||||
-- Hover and signature help
|
-- Hover and signature help
|
||||||
hoverKind = 'FullDocumentation', -- Show full documentation in hover
|
hoverKind = 'FullDocumentation', -- Show full documentation in hover
|
||||||
usePlaceholders = true, -- Insert placeholders for function arguments
|
|
||||||
|
|
||||||
-- Import management
|
-- Import management
|
||||||
gofumpt = true, -- Use `gofumpt` formatting style
|
gofumpt = true, -- Use `gofumpt` formatting style
|
||||||
completeUnimported = true, -- Suggest symbols from unimported packages
|
|
||||||
directoryFilters = { '-vendor' }, -- Exclude vendor directories from analysis
|
directoryFilters = { '-vendor' }, -- Exclude vendor directories from analysis
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -806,7 +804,7 @@ require('lazy').setup({
|
||||||
buffer = bufnr,
|
buffer = bufnr,
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.lsp.buf.code_action {
|
vim.lsp.buf.code_action {
|
||||||
context = { only = { 'source.organizeImports' } },
|
context = { diagnostics = {}, only = { 'source.organizeImports' } },
|
||||||
apply = true,
|
apply = true,
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue