From c886e9ffeb000b076defbf9f99668690fb0dba08 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 22 Jan 2024 13:09:26 -0500 Subject: [PATCH] feat(lsp): add example of LSP features --- lua/plugins/lsp.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 15fdc57..fd4ce55 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -6,6 +6,15 @@ return { "AstroNvim/astrolsp", ---@type AstroLSPOpts opts = { + -- Configuration table of features provided by AstroLSP + features = { + autoformat = true, -- enable or disable auto formatting on start + codelens = true, -- enable/disable codelens refresh on start + diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = off) + inlay_hints = false, -- enable/disable inlay hints on start + lsp_handlers = true, -- enable/disable setting of lsp_handlers + semantic_tokens = true, -- enable/disable semantic token highlighting + }, -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on diagnostics = { virtual_text = true,