diff options
| author | 2025-06-04 12:06:36 +0300 | |
|---|---|---|
| committer | 2025-06-04 12:06:36 +0300 | |
| commit | 27416cef9979882ee8c1da819d48216974c46535 (patch) | |
| tree | c5c074c2ffd13b00a3534931c9bc5f48b633a4a6 /nvim/lua/autocommands.lua | |
| parent | 30.05.2025 (diff) | |
| download | dotfiles-27416cef9979882ee8c1da819d48216974c46535.tar.gz dotfiles-27416cef9979882ee8c1da819d48216974c46535.tar.bz2 dotfiles-27416cef9979882ee8c1da819d48216974c46535.tar.xz dotfiles-27416cef9979882ee8c1da819d48216974c46535.zip | |
04.06.2025
Diffstat (limited to '')
| -rw-r--r-- | nvim/lua/autocommands.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nvim/lua/autocommands.lua b/nvim/lua/autocommands.lua index 2cb9ad4..802d9e9 100644 --- a/nvim/lua/autocommands.lua +++ b/nvim/lua/autocommands.lua @@ -88,9 +88,7 @@ vim.api.nvim_create_autocmd("BufEnter", { vim.api.nvim_create_autocmd({ "BufEnter", "BufAdd", "BufNew", "BufNewFile", "BufWinEnter" }, { group = vim.api.nvim_create_augroup("TS_FOLD_WORKAROUND", {}), callback = function() - vim.opt.foldlevelstart = 99 - vim.opt.foldmethod = "expr" - vim.opt.foldexpr = "nvim_treesitter#foldexpr()" + -- vim.cmd([[normal zR]]) end, }) vim.api.nvim_create_autocmd("FileType", { @@ -142,7 +140,11 @@ vim.api.nvim_create_autocmd("FileType", { vim.opt_local.cindent = false end, }) - +vim.filetype.add({ + extension = { + hjson = "hjson", + }, +}) vim.api.nvim_create_autocmd("VimResized", { pattern = "*", callback = function() |
