feat(neovim): enable signature help, inlay hints and virtual lines
Signature help messages will be shown automatically, for example, in the context of you calling a method it will show a floating window above with the signature of that specific method, i.e. `SomeClass.SomeMethod(string firstParameter)`. Inlay hints are extra information that the LSP may provide; in C# for example, methods and classes will have an inlay hint showing the amount of references that particular method/class has. Finally, virtual lines are exactly what they sound - fake lines added onto your editor, which are used to display diagnostics. I've also added the community recipe that makes so virtual lines are only shown when the active line has a diagnostic.
This commit is contained in:
parent
79cfc08e30
commit
3394d5bed5
2 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,8 @@ return {
|
|||
{ import = "astrocommunity.motion.mini-ai" },
|
||||
{ import = "astrocommunity.motion.mini-surround" },
|
||||
|
||||
{ import = "astrocommunity.recipes.diagnostic-virtual-lines-current-line" },
|
||||
|
||||
{ import = "astrocommunity.test.neotest" },
|
||||
|
||||
{ import = "astrocommunity.pack.cmake" },
|
||||
|
|
|
@ -16,11 +16,13 @@ return {
|
|||
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
|
||||
highlighturl = true, -- highlight URLs at start
|
||||
notifications = true, -- enable notifications at start
|
||||
signature_help = true, -- enable automatically showing signature help
|
||||
inlay_hints = true, -- enable inlay hints globally
|
||||
},
|
||||
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
|
||||
diagnostics = {
|
||||
virtual_text = true,
|
||||
virtual_lines = false,
|
||||
virtual_lines = { current_line = true },
|
||||
},
|
||||
-- vim options can be configured here
|
||||
options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue