Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix nvim-treesitter on nvim 0.12

+12 -17
+12 -17
nvim/lua/plugins.lua
··· 96 96 }, 97 97 { 98 98 -- Syntax Highlighting from the future 99 - "chiefnoah/nvim-treesitter", 100 - branch = "master", 99 + "nvim-treesitter/nvim-treesitter", 100 + branch = "main", 101 101 --init = function() vim.cmd([[":TSUpdate"]]) end, 102 - main = "nvim-treesitter.configs", 103 - opts = { 104 - ensure_installed = 'all', 105 - ignore_install = { 'norg' }, 106 - sync_intall = true, 107 - highlight = { 108 - enable = true, 109 - }, 110 - indent = { 111 - enable = false, 112 - }, 113 - }, 102 + main = "nvim-treesitter", 103 + opts = {}, 104 + config = function(_, opts) 105 + require("nvim-treesitter").setup(opts) 106 + vim.api.nvim_create_autocmd("FileType", { 107 + callback = function() 108 + pcall(vim.treesitter.start) 109 + end, 110 + }) 111 + end, 114 112 build = ":TSUpdate", 115 113 version = false, 116 - dependencies = { 117 - "nvim-treesitter/nvim-treesitter-textobjects", 118 - }, 119 114 }, 120 115 { "nvim-treesitter/nvim-treesitter-context", enabled = false }, 121 116 -- Git stuff