diff options
Diffstat (limited to 'nvim/lsp/astro.lua')
| -rwxr-xr-x | nvim/lsp/astro.lua | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/nvim/lsp/astro.lua b/nvim/lsp/astro.lua deleted file mode 100755 index 6f33439..0000000 --- a/nvim/lsp/astro.lua +++ /dev/null @@ -1,24 +0,0 @@ ----@brief ---- ---- https://github.com/withastro/language-tools/tree/main/packages/language-server ---- ---- `astro-ls` can be installed via `npm`: ---- ```sh ---- npm install -g @astrojs/language-server ---- ``` - -local util = require 'lspconfig.util' - -return { - cmd = { 'astro-ls', '--stdio' }, - filetypes = { 'astro' }, - root_markers = { 'package.json', 'tsconfig.json', 'jsconfig.json', '.git' }, - init_options = { - typescript = {}, - }, - before_init = function(_, config) - if config.init_options and config.init_options.typescript and not config.init_options.typescript.tsdk then - config.init_options.typescript.tsdk = util.get_typescript_server_path(config.root_dir) - end - end, -} |
