1 local capabilities = vim.lsp.protocol.make_client_capabilities()
2 vim.lsp.config["*"] = { capabilities = capabilities, enable = true }
8 vim.diagnostic.config({
11 ["update_in_insert"] = false,
12 ["virtual_lines"] = false,
13 ["virtual_text"] = true,
16 vim.lsp.config["bash-ls"] = {
18 cmd = { "bash-language-server", "start" },
19 filetypes = { "bash", "sh" },
20 root_markers = { ".git" },
21 settings = { basheIde = { globPattern = vim.env.GLOB_PATTERN or "*@(.sh|.inc|.bash|.command)" } },
23 vim.lsp.enable("elmls")
24 vim.lsp.config["lua-language-server"] = {
26 cmd = { "lua-language-server" },
27 filetypes = { "lua" },
39 vim.lsp.config["nil"] = {
42 filetypes = { "nix" },
43 root_markers = { ".git", "flake.nix" },
46 formatting = { command = { "nixfmt" } },
50 vim.lsp.enable("typos_lsp")
51 vim.lsp.config["typos-lsp"] = {
53 cmd = { "typos-lsp" },
54 cmd_env = { RUST_LOG = "error" },
56 -- Custom config. Used together with a config file found in the workspace or its parents,
57 -- taking precedence for settings declared in both.
58 -- Equivalent to the typos `--config` cli argument.
59 config = "~/.config/typos-lsp/typos.toml",
60 -- How typos are rendered in the editor, can be one of an Error, Warning, Info or Hint.
62 diagnosticSeverity = "Info",