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({ nvim_treesitter.setup({
ensure_installed = { ensure_installed = {
'norg', "norg",
}, },
highlight = { highlight = {
enable = true, enable = true,
additional_vim_regex_highlighting = true, additional_vim_regex_highlighting = true,
disable = { 'yaml' }, disable = { "yaml" },
}, },
matchup = { matchup = {
enable = true, enable = true,
@ -18,4 +18,7 @@ nvim_treesitter.setup({
yati = { yati = {
enable = true, enable = true,
}, },
markid = {
enable = true,
},
}) })

View File

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