diff options
Diffstat (limited to 'lua/simenandre/plugins/lsp.lua')
| -rw-r--r-- | lua/simenandre/plugins/lsp.lua | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/lua/simenandre/plugins/lsp.lua b/lua/simenandre/plugins/lsp.lua index 4f81fb9..8853310 100644 --- a/lua/simenandre/plugins/lsp.lua +++ b/lua/simenandre/plugins/lsp.lua @@ -26,6 +26,9 @@ return { -- Allows extra capabilities provided by nvim-cmp "saghen/blink.cmp", }, + opts = { + inlay_hints = { enabled = true }, + }, config = function() -- Brief aside: **What is LSP?** -- @@ -170,7 +173,23 @@ return { -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - gopls = {}, + gopls = { + settings = { + gopls = { + symbolMatcher = "fuzzy", + symbolStyle = "dynamic", + hints = { + rangeVariableTypes = true, + parameterNames = true, + constantValues = true, + assignVariableTypes = true, + compositeLiteralFields = true, + compositeLiteralTypes = true, + functionTypeParameters = true, + }, + }, + }, + }, zls = { root_dir = require("lspconfig.util").root_pattern(".git", "build.zig", "zls.json"), settings = { @@ -191,6 +210,7 @@ return { -- But for many setups, the LSP (`ts_ls`) will work just fine ts_ls = {}, -- + astro = {}, lua_ls = { -- cmd = {...}, @@ -198,6 +218,10 @@ return { -- capabilities = {}, settings = { Lua = { + hint = { + enable = true, -- necessary + }, + enable_inlay_hints = true, completion = { callSnippet = "Replace", }, |
