From a01bb5c0ed3c1a05a00bab07558b20097293dda4 Mon Sep 17 00:00:00 2001 From: gyoder <70408179+gyoder@users.noreply.github.com> Date: Sun, 28 Dec 2025 15:38:19 -0700 Subject: shrug, i forgor --- vim/.config/nvim/lsp/cspell-ls.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'vim/.config/nvim/lsp/cspell-ls.lua') 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'), + }, + }, } -- cgit v1.3.1