You've already forked dotfiles
refactor: Moving the wezterm local file linux cursor fix into the main
config file, fixing treesitter folding (maybe) and removing the old attempt at a fix, slight fixes to formatting in other files.
This commit is contained in:
@@ -2,6 +2,6 @@ return {
|
||||
filetypes = {
|
||||
'gd', 'gdscript', 'gdscript3'
|
||||
},
|
||||
root_markers = {'project.godot', '.git'},
|
||||
root_markers = { 'project.godot', '.git' },
|
||||
cmd = vim.lsp.rpc.connect('127.0.0.1', 6005)
|
||||
}
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
-- 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()',
|
||||
-- })
|
||||
|
||||
-- Disables syntax, treesitter and folding on larger files
|
||||
vim.api.nvim_create_autocmd({ 'BufReadPre' }, {
|
||||
pattern = '*',
|
||||
|
||||
@@ -7,7 +7,7 @@ vim.opt.expandtab = true -- Expand ta
|
||||
vim.opt.fileformat = 'unix' -- Explicitly state that files should use the unix style EOL characters.
|
||||
vim.opt.fillchars = 'fold: ' -- Sets the character that fills in a fold line
|
||||
vim.opt.foldcolumn = '0' -- Disables the foldcolumn
|
||||
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' -- Uses Treesitter to determine where code folding should occur
|
||||
vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -- Uses Treesitter to determine where code folding should occur
|
||||
vim.opt.foldlevel = 10 -- Sets the initial level at which folds will be closed
|
||||
vim.opt.foldlevelstart = 4 -- Sets the initial fold level
|
||||
vim.opt.foldmethod = 'expr' -- Attempt to use the syntax of a file to set folds.
|
||||
|
||||
Reference in New Issue
Block a user