From e7d4b397b291ec8854673e813ae67103bc75e15d Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 30 May 2024 11:17:21 +0200 Subject: [PATCH] feat(extras): simple extra for astro --- lua/lazyvim/plugins/extras/lang/astro.lua | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/astro.lua diff --git a/lua/lazyvim/plugins/extras/lang/astro.lua b/lua/lazyvim/plugins/extras/lang/astro.lua new file mode 100644 index 00000000..67af3e4d --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/astro.lua @@ -0,0 +1,30 @@ +return { + recommended = function() + return LazyVim.extras.wants({ + ft = "astro", + root = { + "astro.config.js", + "astro.config.mjs", + "astro.config.cjs", + }, + }) + end, + + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if type(opts.ensure_installed) == "table" then + vim.list_extend(opts.ensure_installed, { "astro" }) + end + end, + }, + + { + "neovim/nvim-lspconfig", + opts = { + servers = { + astro = {}, + }, + }, + }, +}