You've already forked dotfiles
Moving all the nvim files to a subdirectory and updated the deploy script.
This commit is contained in:
6
nvim/lua/autocmds.lua
Normal file
6
nvim/lua/autocmds.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Fix for treesitter folds, as folds are not recalculated upon buffer changes (especially when pasting text)
|
||||
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufNew', 'BufWinEnter' }, {
|
||||
pattern = '*',
|
||||
group = vim.api.nvim_create_augroup('telescope_fold_workaround', { clear = true }),
|
||||
command = 'set foldexpr=nvim_treesitter#foldexpr()',
|
||||
})
|
||||
Reference in New Issue
Block a user