This commit is contained in:
davidon-top 2023-08-21 20:15:44 +02:00
parent 9d3d05066f
commit 88549fc9c6
5 changed files with 44 additions and 35 deletions

View file

@ -4,5 +4,5 @@ require("mini.ai").setup({
}
})
require("mini.jump").setup({})
require("mini.sessions").setup({autowrite = false, directory = '~/projects/sessions'})
require("mini.sessions").setup({autowrite = false, directory = '~/.local/nvimsessions'})

View file

@ -94,7 +94,8 @@ local ViMode = {
-- control the padding and make sure our string is always at least 2
-- characters long. Plus a nice Icon.
provider = function(self)
return "  %2("..self.mode_names[self.mode].."%)"
--return "  %2("..self.mode_names[self.mode].."%)"
return "%2("..self.mode_names[self.mode].."%)"
end,
-- Same goes for the highlight. Now the foreground will change according to the current mode.
hl = function(self)

View file

@ -6,18 +6,18 @@ require"nvim-treesitter.configs".setup {
auto_install = true,
indent = { enable = true, disable = { 'python' } },
highlight = {
enable = true,
enable = true,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
}
}
vim.wo.foldmethod = "expr"
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"