diff options
| -rw-r--r-- | lsp/typos_lsp.lua | 2 | ||||
| -rw-r--r-- | lua/lspconfig/configs/typos_lsp.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lsp/typos_lsp.lua b/lsp/typos_lsp.lua index 2b2ffa5f..0be3b6de 100644 --- a/lsp/typos_lsp.lua +++ b/lsp/typos_lsp.lua @@ -8,6 +8,6 @@ -- on GitHub: https://github.com/tekumara/typos-lsp/releases return { cmd = { 'typos-lsp' }, - root_markers = { 'typos.toml', '_typos.toml', '.typos.toml' }, + root_markers = { 'typos.toml', '_typos.toml', '.typos.toml', 'pyproject.toml', 'Cargo.toml' }, settings = {}, } diff --git a/lua/lspconfig/configs/typos_lsp.lua b/lua/lspconfig/configs/typos_lsp.lua index 3fb58b25..054f246c 100644 --- a/lua/lspconfig/configs/typos_lsp.lua +++ b/lua/lspconfig/configs/typos_lsp.lua @@ -3,7 +3,7 @@ local util = require 'lspconfig.util' return { default_config = { cmd = { 'typos-lsp' }, - root_dir = util.root_pattern('typos.toml', '_typos.toml', '.typos.toml'), + root_dir = util.root_pattern('typos.toml', '_typos.toml', '.typos.toml', 'pyproject.toml', 'Cargo.toml'), single_file_support = true, settings = {}, }, |
