nvim: enable inlay hints + toggling
This commit is contained in:
parent
5c319ac288
commit
aed9af6f45
6 changed files with 110 additions and 31 deletions
home/common/nvim
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue