nvim-lspconfig/lsp/taplo.lua

18 lines
403 B
Lua

---@brief
---
--- https://taplo.tamasfe.dev/cli/usage/language-server.html
---
--- Language server for Taplo, a TOML toolkit.
---
--- `taplo-cli` can be installed via `cargo`:
--- ```sh
--- cargo install --features lsp --locked taplo-cli
--- ```
---@type vim.lsp.Config
return {
cmd = { 'taplo', 'lsp', 'stdio' },
filetypes = { 'toml' },
root_markers = { '.taplo.toml', 'taplo.toml', '.git' },
}