aboutsummaryrefslogtreecommitdiffstats
path: root/lua/simenandre/plugins/lsp.lua
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2025-08-23 10:40:16 +0200
committerSimen A. W. Olsen <hello@simenandre.no>2025-08-23 10:40:16 +0200
commit9ae165fa0d8cd1ecc433026642484c167c3e0b88 (patch)
treee9872ffa19a8a002a544c025d0f70ea8120e6c32 /lua/simenandre/plugins/lsp.lua
parent807903b91c013b56e77f9f70758bd137e42cbb65 (diff)
downloadconfig.nvim-9ae165fa0d8cd1ecc433026642484c167c3e0b88.tar.gz
config.nvim-9ae165fa0d8cd1ecc433026642484c167c3e0b88.zip
update plugins setup
Diffstat (limited to 'lua/simenandre/plugins/lsp.lua')
-rw-r--r--lua/simenandre/plugins/lsp.lua26
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",
},