QML INDENTATION POGGERS

This commit is contained in:
Zacharias-Brohn
2026-03-17 15:40:11 +01:00
parent db2b2d364f
commit c83a164a1c
7 changed files with 508 additions and 33 deletions
+4 -7
View File
@@ -2,14 +2,11 @@ local treesitter = require "nvim-treesitter"
treesitter.install { "all" }
local parsers = treesitter.get_installed()
vim.api.nvim_create_autocmd("FileType", {
callback = function(args)
local has_parser = pcall(vim.treesitter.get_parser, args.buf)
if not has_parser then
return
end
pattern = parsers,
callback = function()
vim.treesitter.start()
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,