custom-hypr - add: nvim config
This commit is contained in:
27
.config/nvim/lua/plugins/treesitter.lua
Normal file
27
.config/nvim/lua/plugins/treesitter.lua
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user