custom-hypr - add: nvim config

This commit is contained in:
huyjaky
2024-11-29 11:44:20 +07:00
parent ea3007a51e
commit 1380fa224b
56 changed files with 2878 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
-- Customize Treesitter
---@type LazySpec
return {
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
-- add more things to the ensure_installed table protecting against community packs modifying it
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, {
"lua",
"c",
"cpp",
"python",
-- "javascript",
})
opts.highlight = {
enable = true,
disable = { "c", "rust", "tsx", "javascript", "python"},
additional_vim_regex_highlighting = false,
custom_captures = {
-- Highlight local variables
["variable.local"] = "Identifier",
},
}
vim.api.nvim_set_hl(0, "Identifier", { fg = "#55ffff" })
end,
}