Config
This commit is contained in:
parent
7201dc4801
commit
be36a60446
36 changed files with 800 additions and 7 deletions
17
lua/custom/plugins/typos-lsp.lua
Normal file
17
lua/custom/plugins/typos-lsp.lua
Normal 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 {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue