feat(nvim): improve treesitter highlighting w/ markid
This commit is contained in:
parent
748790eb39
commit
cd23fdf045
@ -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,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user