mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-11-03 14:06:02 +00:00
12 lines
381 B
Lua
12 lines
381 B
Lua
vim.cmd([[autocmd TermOpen * setlocal nonumber norelativenumber]])
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = { "norg", "neorg" },
|
|
callback = function()
|
|
if pcall(vim.treesitter.start) then
|
|
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
|
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
|
end
|
|
end,
|
|
})
|