From 9d54bbe21c202c7dbad6c933d8b3ccacc25d6d22 Mon Sep 17 00:00:00 2001 From: Daveanand Mannie Date: Mon, 2 Sep 2024 17:56:23 -0400 Subject: [PATCH] moved treesitter opts to its own spec file --- lua/plugins/python.lua | 4 ---- lua/plugins/treesitter.lua | 17 +++++++++-------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/lua/plugins/python.lua b/lua/plugins/python.lua index d5c274c..34423a8 100644 --- a/lua/plugins/python.lua +++ b/lua/plugins/python.lua @@ -1,8 +1,4 @@ return { - { - "nvim-treesitter/nvim-treesitter", - opts = { ensure_installed = { "ninja", "rst" } }, - }, { "neovim/nvim-lspconfig", opts = { diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 549e0d4..116aa63 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,12 +1,13 @@ return { - { - "nvim-treesitter/nvim-treesitter", - build = function() - require('nvim-treesitter.install').compilers = {"zig"} + { + "nvim-treesitter/nvim-treesitter", + build = function() + require("nvim-treesitter.install").compilers = { "zig" } end, opts = { - highlight = {enable = true}, - indent = {enable = true} - } - } + highlight = { enable = true }, + indent = { enable = true }, + ensure_installed = { "ninja", "rst"} + }, + }, }