This commit is contained in:
smrznuti1 2024-09-21 13:44:57 +02:00
parent 7201dc4801
commit be36a60446
36 changed files with 800 additions and 7 deletions

View file

@ -0,0 +1,17 @@
local lspconfig = require 'lspconfig'
local lsp_capabilities = vim.lsp.protocol.make_client_capabilities()
lspconfig.typos_lsp.setup {
-- Logging level of the language server. Logs appear in :LspLog. Defaults to error.
-- cmd_env = { RUST_LOG = "error" },
capabilities = lsp_capabilities,
init_options = {
-- Custom config. Used together with any workspace config files, taking precedence for
-- settings declared in both. Equivalent to the typos `--config` cli argument.
-- config = "~/code/typos-lsp/crates/typos-lsp/tests/typos.toml",
-- How typos are rendered in the editor, eg: as errors, warnings, information, or hints.
-- Defaults to error.
diagnosticSeverity = 'Error',
},
}
return {}