diff --git a/ftdetect/astro.vim b/ftdetect/astro.vim new file mode 100644 index 0000000..4fe142e --- /dev/null +++ b/ftdetect/astro.vim @@ -0,0 +1 @@ +autocmd BufRead,BufEnter *.astro set filetype=astro diff --git a/init.plugins.vim b/init.plugins.vim index e6b5286..f517942 100644 --- a/init.plugins.vim +++ b/init.plugins.vim @@ -12,6 +12,7 @@ Plug 'simrat39/rust-tools.nvim' " evaluating " https://github.com/wuelnerdotexe/vim-astro +" do i need this and https://github.com/virchau13/tree-sitter-astro ???? Plug 'wuelnerdotexe/vim-astro' " https://github.com/kevinhwang91/ diff --git a/init.vim b/init.vim index 918cacb..e9a2f07 100644 --- a/init.vim +++ b/init.vim @@ -418,6 +418,7 @@ augroup OnTerminalOpen autocmd! autocmd TermOpen * setlocal nonumber norelativenumber augroup END + " }}} "----------------------------------------------------------------------------}}} diff --git a/lua/init-lsp.lua b/lua/init-lsp.lua index 0120229..c90476a 100644 --- a/lua/init-lsp.lua +++ b/lua/init-lsp.lua @@ -11,7 +11,9 @@ local nvim_lsp = require('lspconfig') -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches local servers = { - -- npm i -g bash-language-server + -- astro + -- npm install -g @astrojs/language-server + 'astro', -- npm i -g bash-language-server -- no formatting support 'bashls', -- npm i -g vscode-langservers-extracted -- no formatting support