From 754404ace10df7c9fc0f5052ef36128b0967b356 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Mon, 13 Nov 2023 12:44:04 -0500 Subject: [PATCH] fix(nvim): add treesitter for nix --- user/modules/nvim/lua/plugins/lsp.lua | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/user/modules/nvim/lua/plugins/lsp.lua b/user/modules/nvim/lua/plugins/lsp.lua index 648c7dc..cf3c72f 100644 --- a/user/modules/nvim/lua/plugins/lsp.lua +++ b/user/modules/nvim/lua/plugins/lsp.lua @@ -4,9 +4,42 @@ return { ---@class PluginLspOpts opts = { ---@type lspconfig.options + ---@diagnostic disable-next-line: missing-fields servers = { nil_ls = {}, }, }, }, + { + "nvim-treesitter/nvim-treesitter", + ---@type TSConfig + ---@diagnostic disable-next-line: missing-fields + opts = { + ensure_installed = { + "bash", + "c", + "diff", + "html", + "javascript", + "jsdoc", + "json", + "jsonc", + "lua", + "luadoc", + "luap", + "markdown", + "markdown_inline", + "python", + "query", + "regex", + "toml", + "tsx", + "typescript", + "vim", + "vimdoc", + "yaml", + "nix", + }, + }, + }, }