chore: fmt
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user