feat(nvim): improve treesitter highlighting w/ markid

This commit is contained in:
Price Hiller 2022-09-11 14:25:18 -05:00
parent 748790eb39
commit cd23fdf045
2 changed files with 16 additions and 10 deletions

View File

@ -1,13 +1,13 @@
local nvim_treesitter = require('nvim-treesitter.configs')
local nvim_treesitter = require("nvim-treesitter.configs")
nvim_treesitter.setup({
ensure_installed = {
'norg',
"norg",
},
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
disable = { 'yaml' },
disable = { "yaml" },
},
matchup = {
enable = true,
@ -18,4 +18,7 @@ nvim_treesitter.setup({
yati = {
enable = true,
},
markid = {
enable = true,
},
})

View File

@ -186,6 +186,9 @@ return packer.startup({
use({
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
requires = {
"David-Kunz/markid",
},
config = function()
require("plugins.configs.treesitter")
end,
@ -746,13 +749,13 @@ return packer.startup({
})
-- Highlight argument definitions and usages
use({
"m-demare/hlargs.nvim",
requires = { "nvim-treesitter/nvim-treesitter" },
config = function()
require("hlargs").setup({})
end,
})
-- use({
-- "m-demare/hlargs.nvim",
-- requires = { "nvim-treesitter/nvim-treesitter" },
-- config = function()
-- require("hlargs").setup({})
-- end,
-- })
-- Vim Latex Support
use({