diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2026-01-15 15:02:31 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2026-01-15 15:02:31 +0200 |
| commit | 7019b29558eaaad8ae76d8eab5c7af67c7541678 (patch) | |
| tree | ef8fd990f4e4dcbfc1dd7c849aea9e92367cd852 | |
| parent | cc73a0721c6c33948b89e1d3982b6cd3c837271e (diff) | |
| download | nixos-7019b29558eaaad8ae76d8eab5c7af67c7541678.tar.zst | |
Use dynamic registrations
| -rw-r--r-- | home/nvim/lsp.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/home/nvim/lsp.lua b/home/nvim/lsp.lua index 15d463d..2b8a730 100644 --- a/home/nvim/lsp.lua +++ b/home/nvim/lsp.lua @@ -31,23 +31,23 @@ local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = vim.tbl_deep_extend("force", capabilities, { textDocument = { inlayHint = { - dynamicRegistration = false, -- Static registration + dynamicRegistration = true, resolveSupport = { properties = { "textEdits", "tooltip", "label" }, -- Resolve additional hint details }, }, synchronization = { - dynamicRegistration = false, -- Static registration - willSave = true, -- Notify server before saving + dynamicRegistration = true, + willSave = true, -- Notify server before saving willSaveWaitUntil = true, -- Allow server to provide edits before saving - didSave = true, -- Notify server after saving + didSave = true, -- Notify server after saving }, hover = { - dynamicRegistration = false, -- Static registration + dynamicRegistration = true, contentFormat = { "markdown", "plaintext" }, -- Prefer markdown, fallback to plaintext }, documentSymbol = { - dynamicRegistration = false, -- Static registration + dynamicRegistration = true, hierarchicalDocumentSymbolSupport = true, -- Support nested symbols symbolKind = { valueSet = { @@ -81,7 +81,7 @@ capabilities = vim.tbl_deep_extend("force", capabilities, { augmentsSyntaxTokens = true, }, foldingRange = { - dynamicRegistration = false, + dynamicRegistration = true, lineFoldingOnly = true, }, }, @@ -98,7 +98,7 @@ capabilities = vim.tbl_deep_extend("force", capabilities, { didCreate = true, }, symbol = { - dynamicRegistration = false, -- Static registration + dynamicRegistration = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, @@ -260,7 +260,7 @@ vim.lsp.config("biome", { capabilities = { textDocument = { formatting = { - dynamicRegistration = false, + dynamicRegistration = true, }, }, }, |
