mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 05:02:10 +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()
|
||||
require("nvim-treesitter").setup { auto_install = true }
|
||||
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,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue