mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-17 09:02:11 +00:00
update nvim highlighting
This commit is contained in:
parent
72ee43c0db
commit
228642c59f
1 changed files with 8 additions and 0 deletions
|
|
@ -82,6 +82,14 @@ return {
|
||||||
after = function()
|
after = function()
|
||||||
require("nvim-treesitter").setup { auto_install = true }
|
require("nvim-treesitter").setup { auto_install = true }
|
||||||
register_query_directive_compat()
|
register_query_directive_compat()
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
callback = function(ev)
|
||||||
|
if pcall(vim.treesitter.start, ev.buf) then
|
||||||
|
vim.bo[ev.buf].indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue