feat: migrated plugin manager from lazy to vim.pack
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user