update: hypr&neovim improvements, yazi plugins, waybar tweaking before bigger update
This commit is contained in:
@@ -1,26 +1,48 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
ensure_installed = {
|
||||
"python",
|
||||
"go",
|
||||
"kotlin",
|
||||
"dart",
|
||||
"lua",
|
||||
"bash",
|
||||
"json",
|
||||
"yaml",
|
||||
"markdown",
|
||||
},
|
||||
ts = require("nvim-treesitter")
|
||||
ts.setup()
|
||||
ts.install({
|
||||
"python",
|
||||
"go",
|
||||
"kotlin",
|
||||
"dart",
|
||||
"lua",
|
||||
"bash",
|
||||
"json",
|
||||
"yaml",
|
||||
"markdown",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
})
|
||||
vim.treesitter.language.register("html", "gotmpl")
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
callback = function(args)
|
||||
local lang = vim.treesitter.language.get_lang(args.match)
|
||||
if vim.list_contains(ts.get_available(), lang) then
|
||||
if not vim.list_contains(ts.get_installed(), lang) then
|
||||
ts.install(lang):wait()
|
||||
end
|
||||
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
vim.treesitter.start(args.buf)
|
||||
end
|
||||
end,
|
||||
desc = "enable nvim-treesitter and install parser if not installed",
|
||||
})
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
})
|
||||
-- require("nvim-treesitter").setup()
|
||||
-- {
|
||||
-- ensure_installed = {
|
||||
-- },
|
||||
--
|
||||
-- sync_install = false,
|
||||
-- auto_install = true,
|
||||
--
|
||||
-- highlight = {
|
||||
-- enable = true,
|
||||
-- additional_vim_regex_highlighting = false,
|
||||
-- },
|
||||
-- })
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user