aboutsummaryrefslogtreecommitdiff
path: root/vim/.config/nvim/lsp
diff options
context:
space:
mode:
authorgyoder <70408179+gyoder@users.noreply.github.com>2025-07-30 11:58:47 -0600
committergyoder <70408179+gyoder@users.noreply.github.com>2025-07-30 11:58:47 -0600
commit7f9cb6e767a4b136ccf043b2ade6e48e4117db8a (patch)
treeee9da37184e1a0cfc52e84c583d2655451d55d72 /vim/.config/nvim/lsp
parentf571b53d32758539608842cc5cd16b4a1c2f5f2d (diff)
nvim: many changes
Diffstat (limited to 'vim/.config/nvim/lsp')
-rw-r--r--vim/.config/nvim/lsp/astro.lua10
-rw-r--r--vim/.config/nvim/lsp/cspell-ls.lua23
2 files changed, 33 insertions, 0 deletions
diff --git a/vim/.config/nvim/lsp/astro.lua b/vim/.config/nvim/lsp/astro.lua
new file mode 100644
index 0000000..d53f1ca
--- /dev/null
+++ b/vim/.config/nvim/lsp/astro.lua
@@ -0,0 +1,10 @@
+return {
+ cmd = { 'astro-ls', '--stdio' },
+ filetypes = { 'astro' },
+ root_markers = { 'package.json', 'tsconfig.json', 'jsconfig.json', '.git' },
+ init_options = {
+ typescript = {
+ tsdk = "./node_modules/typescript/lib"
+ },
+ },
+}
diff --git a/vim/.config/nvim/lsp/cspell-ls.lua b/vim/.config/nvim/lsp/cspell-ls.lua
new file mode 100644
index 0000000..4f184af
--- /dev/null
+++ b/vim/.config/nvim/lsp/cspell-ls.lua
@@ -0,0 +1,23 @@
+---@brief
+---
+--- [cspell language server](https://github.com/vlabo/cspell-lsp)
+---
+return {
+ cmd = { 'cspell-lsp', '--stdio' },
+ filetypes = {"go", "rust", "js", "ts", "html", "css", "json", "yaml", "markdown", "gitcommit", "typst", "lua", "htmlua"},
+ root_markers = {
+ '.git',
+ 'cspell.json',
+ '.cspell.json',
+ 'cspell.json',
+ '.cSpell.json',
+ 'cSpell.json',
+ 'cspell.config.js',
+ 'cspell.config.cjs',
+ 'cspell.config.json',
+ 'cspell.config.yaml',
+ 'cspell.config.yml',
+ 'cspell.yaml',
+ 'cspell.yml',
+ },
+}