You've already forked dotfiles
configurations and using newer built-in functionality in the 0.12.x versions of Neovim. Further work is needed for treesitter updates, cleanup of the conversion work and testing to verify old functionality isn't lessened to get the benefits of a cleaner config and vastly faster load times.
14 lines
380 B
Lua
14 lines
380 B
Lua
-- Treesitter
|
|
-- def tsi [parser: string] {
|
|
-- let tree = $"($env.HOME)/.local/share/nvim/site"
|
|
-- luarocks $"--tree=($tree)" install $"tree-sitter-($parser)"
|
|
-- }
|
|
|
|
local rocks_path = vim.fn.stdpath("data") .. "/site/lib/luarocks/rocks-5.1"
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
callback = function (args)
|
|
pcall(vim.treesitter.start, args.buf)
|
|
end
|
|
})
|