migrate treesitter to new API, fix tide script ordering
- Replace removed require('nvim-treesitter.configs').setup with new
require('nvim-treesitter').setup() + .install() API
- Rename tide configure script so it sorts after the main installer
(configure_tide → z_configure_tide), fixing fresh installs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3686b429f2
commit
80bb0e07cf
@ -32,7 +32,16 @@ require("lazy").setup({
|
||||
-- Gruvbox colorscheme
|
||||
{ "ellisonleao/gruvbox.nvim", priority = 1000 },
|
||||
-- Treesitter for better highlighting and moving
|
||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate",
|
||||
config = function()
|
||||
require("nvim-treesitter").setup({})
|
||||
require("nvim-treesitter").install({
|
||||
"c", "query", "vimdoc", "vim", "bash", "go", "css",
|
||||
"python", "html", "javascript", "json", "jsonc",
|
||||
"lua", "rust", "typescript",
|
||||
})
|
||||
end,
|
||||
},
|
||||
{ "nvim-telescope/telescope.nvim", dependencies = { "nvim-lua/plenary.nvim" } },
|
||||
{ "nvim-tree/nvim-tree.lua" },
|
||||
{ "jeffkreeftmeijer/vim-numbertoggle" },
|
||||
@ -216,21 +225,6 @@ auto_session.setup({
|
||||
})
|
||||
-- require("auto-session-nvim-tree").setup(auto_session)
|
||||
|
||||
require('nvim-treesitter.configs').setup {
|
||||
ensure_installed = { 'c','query','vimdoc','vim','bash', 'go', 'css', 'python', 'html', 'javascript', 'json', 'jsonc', 'lua', 'rust', 'typescript' },
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<CR>", -- set to `false` to disable one of the mappings
|
||||
node_incremental = "<TAB>",
|
||||
scope_incremental = "<CR>",
|
||||
node_decremental = "<S-TAB>",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
vim.cmd([[highlight IndentBlanklineIndent1 guifg=#443838 gui=nocombine]])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user