nvim: enable inlay hints + toggling

This commit is contained in:
Daniel Lundin 2024-12-02 09:42:24 +01:00
parent 5c319ac288
commit aed9af6f45
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
6 changed files with 110 additions and 31 deletions
home/common/nvim

View file

@ -1,12 +1,27 @@
local lspconfig = require("lspconfig")
local servers = {
cssls = {},
gopls = {},
html = {},
jsonls = {},
superhtml = {},
ts_ls = {},
gopls = {
settings = {
gopls = {
hints = {
rangeVariableTypes = true,
parameterNames = true,
constantValues = true,
assignVariableTypes = true,
compositeLiteralFields = true,
compositeLiteralTypes = true,
functionTypeParameters = true,
},
},
},
},
harper_ls = {
filetypes = {
"asciidoc", "c", "gitcommit", "go", "html", "javascript", "just", "lua", "markdown",
@ -22,6 +37,7 @@ local servers = {
path = vim.split(package.path, ";"),
},
diagnostics = { globals = { "vim", "hs" } },
hint = { enable = true },
workspace = {
library = {
[vim.fn.expand("$VIMRUNTIME/lua")] = true,