aboutsummaryrefslogtreecommitdiff
path: root/vim/.config/nvim/lsp/cspell-ls.lua
diff options
context:
space:
mode:
authorgyoder <70408179+gyoder@users.noreply.github.com>2025-12-28 15:38:19 -0700
committergyoder <70408179+gyoder@users.noreply.github.com>2025-12-28 15:38:19 -0700
commita01bb5c0ed3c1a05a00bab07558b20097293dda4 (patch)
treebfb37ac1411a812affb8e1f625a1ac20e9712d01 /vim/.config/nvim/lsp/cspell-ls.lua
parent428c884e0d4472fbb8c369632770a3331a814023 (diff)
shrug, i forgor
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'),
+ },
+ },
}