feat: mirgated to neovims internal plugin manager
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
vim.pack.add({
|
||||
'https://github.com/nvim-treesitter/nvim-treesitter'
|
||||
'https://github.com/nvim-treesitter/nvim-treesitter'
|
||||
})
|
||||
|
||||
require('nvim-treesitter').setup({})
|
||||
require('nvim-treesitter').install( {'lua','rust', 'javascript', 'zig', "c","typescript", "cpp","haskell","svelte","python", "vim", "vimdoc", "html" })
|
||||
require('nvim-treesitter').setup({
|
||||
highlight = {
|
||||
enable = true
|
||||
},
|
||||
})
|
||||
require('nvim-treesitter').install({ 'lua', 'rust', 'javascript', 'zig', "c", "typescript", "cpp", "haskell", "svelte",
|
||||
"python", "vim", "vimdoc", "html", "wgsl" })
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = { 'python', 'lua' },
|
||||
callback = function() vim.treesitter.start() end,
|
||||
callback = function(args)
|
||||
pcall(vim.treesitter.start, args.buf)
|
||||
end,
|
||||
})
|
||||
vim.filetype.add({ extension = { wgsl = "wgsl" } })
|
||||
|
||||
Reference in New Issue
Block a user