1
0
Fork 0

formatting

This commit is contained in:
zymon 2025-03-30 23:51:44 +02:00
parent f5319fcd7a
commit e986ef657d

View file

@ -77,7 +77,7 @@ return {
{ "<leader>gr", group = "reset" }, { "<leader>gr", group = "reset" },
{ "<leader>gs", group = "stage" }, { "<leader>gs", group = "stage" },
{ "<leader>gt", group = "toggle" }, { "<leader>gt", group = "toggle" },
{ "<leader>p", group = "pick" }, { "<leader>p", group = "pick" },
{ "<leader>u", group = "ui" }, { "<leader>u", group = "ui" },
{ "<leader>x", group = "diagnostics" }, { "<leader>x", group = "diagnostics" },
}, },
@ -161,14 +161,14 @@ return {
keys = { keys = {
{ {
"zR", "zR",
function () function()
require('ufo').openAllFolds() require('ufo').openAllFolds()
end, end,
desc = "Open all folds" desc = "Open all folds"
}, },
{ {
"zM", "zM",
function () function()
require('ufo').closeAllFolds() require('ufo').closeAllFolds()
end, end,
desc = "Close all folds" desc = "Close all folds"
@ -176,7 +176,7 @@ return {
}, },
config = { config = {
provider_selector = function(bufnr, filetype, buftype) provider_selector = function(bufnr, filetype, buftype)
return {'treesitter', 'indent'} return { 'treesitter', 'indent' }
end end
}, },
}, },
@ -200,10 +200,10 @@ return {
"https://github.com/folke/persistence.nvim", "https://github.com/folke/persistence.nvim",
event = "BufReadPre", -- this will only start session saving when an actual file was opened event = "BufReadPre", -- this will only start session saving when an actual file was opened
keys = { keys = {
{"<leader>qs", function() require("persistence").load() end, desc = "load session from cwd"}, { "<leader>qs", function() require("persistence").load() end, desc = "load session from cwd" },
{"<leader>qS", function() require("persistence").select() end, desc = "select a session to load"}, { "<leader>qS", function() require("persistence").select() end, desc = "select a session to load" },
{"<leader>ql", function() require("persistence").load({ last = true }) end, desc = "load te last session"}, { "<leader>ql", function() require("persistence").load({ last = true }) end, desc = "load te last session" },
{"<leader>qd", function() require("persistence").stop() end, desc = "stop persistence"}, { "<leader>qd", function() require("persistence").stop() end, desc = "stop persistence" },
}, },
opts = { opts = {
-- add any custom options here -- add any custom options here