feat!(nvim): Migrate to v0.11 built-in lsp configs

This commit is contained in:
js0ny 2025-04-02 20:09:30 +01:00
parent 4da1667c54
commit 9315c6e55d
16 changed files with 303 additions and 31 deletions

32
tools/nvim/lsp/taplo.lua Normal file
View file

@ -0,0 +1,32 @@
-- TOML
--[[ Installation
cargo install taplo-cli --locked
brew install taplo
pnpm install -g @taplo/cli
--]]
return {
cmd = { "taplo", "lsp", "stdio" },
filetypes = { "toml" },
root_markers = { ".git" },
settings = {
-- See all the setting options
-- https://github.com/tamasfe/taplo/blob/master/editors/vscode/package.json
evenBetterToml = {
taplo = {
configFile = {
enabled = true,
},
},
schema = {
enabled = true,
catalogs = {
"https://www.schemastore.org/api/json/catalog.json",
},
cache = {
memoryExpiration = 60,
diskExpiration = 600,
},
},
},
},
}