feat: migrated plugin manager from lazy to vim.pack

This commit is contained in:
2026-03-08 10:37:07 +01:00
parent bb89997e23
commit 7cb5b2d4b6
8 changed files with 155 additions and 166 deletions

View File

@@ -1,20 +1,11 @@
return{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
dependencies = {
-- Automatically install LSPs and related tools to stdpath for Neovim
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
},
config = function ()
vim.pack.add({
'https://github.com/nvim-treesitter/nvim-treesitter'
})
local treesitter = require("nvim-treesitter")
require('nvim-treesitter').setup({})
require('nvim-treesitter').install( {'lua','rust', 'javascript', 'zig', "c","typescript", "cpp","haskell","svelte","python", "vim", "vimdoc", "html" })
treesitter.setup({
ensure_installed = { "c", "cpp","haskell", "lua","svelte","python", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'python', 'lua' },
callback = function() vim.treesitter.start() end,
})