From bbf98cedf20c0d1aeb279659ce50c8094f06983a Mon Sep 17 00:00:00 2001 From: djkato Date: Wed, 10 Jan 2024 13:56:16 +0100 Subject: [PATCH] treesitter and lsps --- plugins/mason-lspconfig.lua | 16 ++++++++++++++++ plugins/treesitter.lua | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 plugins/mason-lspconfig.lua diff --git a/plugins/mason-lspconfig.lua b/plugins/mason-lspconfig.lua new file mode 100644 index 0000000..c575563 --- /dev/null +++ b/plugins/mason-lspconfig.lua @@ -0,0 +1,16 @@ +-- use mason-lspconfig to configure LSP installations +return { + "williamboman/mason-lspconfig.nvim", + opts = { + automatic_installation = true, + ensure_installed = { + "astro", + "svelte", + "tailwindcss", + "rust_analyzer", + "jsonls", + "tsserver", + "html" + }, + }, +} diff --git a/plugins/treesitter.lua b/plugins/treesitter.lua index 18c6da6..8d22577 100644 --- a/plugins/treesitter.lua +++ b/plugins/treesitter.lua @@ -3,7 +3,12 @@ return { opts = function(_, opts) -- add more things to the ensure_installed table protecting against community packs modifying it opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, { - -- "lua" + "astro", + "yaml", + "svelte", + "dockerfile", + "json5", + "markdown" }) end, }