aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMicah Halter <micah@mehalter.com>2023-11-28 07:22:26 -0500
committerGitHub <noreply@github.com>2023-11-28 04:22:26 -0800
commit39546f730bdff8eccf7cec344cfce694f19ac908 (patch)
treef6cdd08c16b25c263cb01f125a11a9539b13dc55
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-39546f730bdff8eccf7cec344cfce694f19ac908.tar
nvim-lspconfig-39546f730bdff8eccf7cec344cfce694f19ac908.tar.gz
nvim-lspconfig-39546f730bdff8eccf7cec344cfce694f19ac908.tar.bz2
nvim-lspconfig-39546f730bdff8eccf7cec344cfce694f19ac908.tar.lz
nvim-lspconfig-39546f730bdff8eccf7cec344cfce694f19ac908.tar.xz
nvim-lspconfig-39546f730bdff8eccf7cec344cfce694f19ac908.tar.zst
nvim-lspconfig-39546f730bdff8eccf7cec344cfce694f19ac908.zip
fix(typos_lsp): use configuration file for root detection #2918
-rw-r--r--lua/lspconfig/server_configurations/typos_lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/typos_lsp.lua b/lua/lspconfig/server_configurations/typos_lsp.lua
index 7d5da0ad..817ae72d 100644
--- a/lua/lspconfig/server_configurations/typos_lsp.lua
+++ b/lua/lspconfig/server_configurations/typos_lsp.lua
@@ -4,7 +4,7 @@ return {
default_config = {
cmd = { 'typos-lsp' },
filetypes = { '*' },
- root_dir = util.root_pattern('pyproject.toml', '.git'),
+ root_dir = util.root_pattern('typos.toml', '_typos.toml', '.typos.toml', '.git'),
single_file_support = true,
settings = {},
},