summaryrefslogtreecommitdiff
path: root/vim/.config/nvim/lsp/cspell-ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.config/nvim/lsp/cspell-ls.lua')
-rw-r--r--vim/.config/nvim/lsp/cspell-ls.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/vim/.config/nvim/lsp/cspell-ls.lua b/vim/.config/nvim/lsp/cspell-ls.lua
index 4f184af..b01c7a3 100644
--- a/vim/.config/nvim/lsp/cspell-ls.lua
+++ b/vim/.config/nvim/lsp/cspell-ls.lua
@@ -4,7 +4,7 @@
---
return {
cmd = { 'cspell-lsp', '--stdio' },
- filetypes = {"go", "rust", "js", "ts", "html", "css", "json", "yaml", "markdown", "gitcommit", "typst", "lua", "htmlua"},
+ filetypes = { "go", "rust", "js", "ts", "html", "css", "json", "yaml", "markdown", "gitcommit", "typst", "lua", "htmlua", "c", "cpp", "arduino" },
root_markers = {
'.git',
'cspell.json',
@@ -20,4 +20,10 @@ return {
'cspell.yaml',
'cspell.yml',
},
+ init_options = {
+ userWordsFile = vim.fn.expand('~/.config/cspell/user-dictionary.txt'),
+ configPaths = {
+ vim.fn.expand('~/.cspell.json'),
+ },
+ },
}