commit fdd7ea1b2d2493dcaf80ebf7a67c0368821d9479
parent 5aef14b709f082efc368c413c472725cefec3300
Author: Andrew Laack <andrew@laack.co>
Date: Wed, 18 Feb 2026 04:47:03 -0600
Updated treesitter loading
Diffstat:
1 file changed, 20 insertions(+), 18 deletions(-)
diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua
@@ -121,24 +121,6 @@ require("luasnip").config.set_config({ -- Setting LuaSnip config
vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
- -- Tree sitter (syntax highlighting)
- use("nvim-treesitter/nvim-treesitter")
-
- require'nvim-treesitter.configs'.setup {
- ensure_installed = { "java", "lua", "python", "javascript", "html", "markdown" , "latex"},
-
- ignore_install = {"latex"}, -- Disables latex tree-sitter
-
- auto_install = true,
- highlight = {
- enable = true, -- Enable highlighting
- additional_vim_regex_highlighting = { 'ruby', 'markdown' },
- },
- indent = {
- enable = true, -- Enable indentation
- },
- }
-
--use("scottmckendry/cyberdream.nvim")
-- use('goerz/jupytext.nvim')
@@ -186,6 +168,26 @@ require("luasnip").config.set_config({ -- Setting LuaSnip config
-- debug = false,
-- }
+-- -- Tree sitter (syntax highlighting)
+ use({
+ "nvim-treesitter/nvim-treesitter",
+ run = ":TSUpdate",
+ config = function()
+ require("nvim-treesitter.configs").setup({
+ ensure_installed = { "java", "lua", "python", "javascript", "html", "markdown", "latex" },
+ ignore_install = { "latex" },
+ auto_install = true,
+ highlight = {
+ enable = true,
+ additional_vim_regex_highlighting = { "ruby", "markdown" },
+ },
+ indent = {
+ enable = true,
+ },
+ })
+ end,
+ })
+
use({
"kylechui/nvim-surround",