aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/astro.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-04-22 05:44:50 -0700
committerGitHub <noreply@github.com>2025-04-22 05:44:50 -0700
commitd3458965499eec45d87685d6a423b99ac182e385 (patch)
treee7563a6837744d02974c180588796a9d1f3f6f8d /lsp/astro.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar
nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.gz
nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.bz2
nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.lz
nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.xz
nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.tar.zst
nvim-lspconfig-d3458965499eec45d87685d6a423b99ac182e385.zip
ci(lint): check `@brief` docstring placement #3762
Diffstat (limited to 'lsp/astro.lua')
-rw-r--r--lsp/astro.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lsp/astro.lua b/lsp/astro.lua
index 86f834fa..2bd64310 100644
--- a/lsp/astro.lua
+++ b/lsp/astro.lua
@@ -1,8 +1,3 @@
-local function get_typescript_server_path(root_dir)
- local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
- return project_root and vim.fs.joinpath(project_root, 'node_modules', 'typescript', 'lib') or ''
-end
-
---@brief
---
--- https://github.com/withastro/language-tools/tree/main/packages/language-server
@@ -12,6 +7,11 @@ end
--- npm install -g @astrojs/language-server
--- ```
+local function get_typescript_server_path(root_dir)
+ local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
+ return project_root and vim.fs.joinpath(project_root, 'node_modules', 'typescript', 'lib') or ''
+end
+
return {
cmd = { 'astro-ls', '--stdio' },
filetypes = { 'astro' },