chore: fmt

This commit is contained in:
2025-11-24 18:04:11 +08:00
parent de495a1195
commit 12c56e2283
3 changed files with 4 additions and 5 deletions
@@ -83,7 +83,7 @@ local plugins = {
"nvim-treesitter/nvim-treesitter",
branch = "main",
dependencies = {
{
{
branch = "main",
"nvim-treesitter/nvim-treesitter-textobjects",
},
@@ -1,14 +1,14 @@
--- @type TSConfig
M = {
install_dir = vim.fn.stdpath('data') .. '/site',
install_dir = vim.fn.stdpath("data") .. "/site",
}
vim.api.nvim_create_autocmd('FileType', {
vim.api.nvim_create_autocmd("FileType", {
callback = function()
-- Enable treesitter highlighting and disable regex syntax
pcall(vim.treesitter.start)
-- Enable treesitter-based indentation
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
})