diff options
| author | 2026-02-17 23:28:56 +0300 | |
|---|---|---|
| committer | 2026-02-17 23:28:56 +0300 | |
| commit | 2cd497a205c3f24b920045e939f396218e4d2aeb (patch) | |
| tree | cb4a06992b19d00d41cf566d88d4af91cf116c1a /config/nvim/lua/autocommands.lua | |
| parent | Починил zshrc (diff) | |
| download | dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.gz dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.bz2 dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.tar.xz dotfiles-2cd497a205c3f24b920045e939f396218e4d2aeb.zip | |
added ZK plugin
Diffstat (limited to 'config/nvim/lua/autocommands.lua')
| -rw-r--r-- | config/nvim/lua/autocommands.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/config/nvim/lua/autocommands.lua b/config/nvim/lua/autocommands.lua index fee69a4..9811dbe 100644 --- a/config/nvim/lua/autocommands.lua +++ b/config/nvim/lua/autocommands.lua @@ -98,12 +98,9 @@ vim.api.nvim_create_autocmd("FileType", { pcall(vim.treesitter.start, buf, ft) end end - end, -}) -vim.api.nvim_create_autocmd("User", { - pattern = "TSUpdate", - callback = function() - vim.cmd([[TSEnable highlight]]) + vim.wo[0][0].foldexpr = "v:lua.vim.treesitter.foldexpr()" + vim.wo[0][0].foldmethod = "expr" + vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end, }) vim.api.nvim_create_autocmd({ "BufWritePost" }, { |
