Rename common gui and misc cli

This commit is contained in:
2024-07-08 12:53:27 +07:00
parent 38669f9264
commit d564e89c3b
73 changed files with 55 additions and 54 deletions
+34
View File
@@ -0,0 +1,34 @@
return {
{
"okuuva/auto-save.nvim",
keys = {
{ "<leader>w", "<cmd>lua vim.g.auto_save_state = not vim.g.auto_save_state<cr>", desc = "Toggle autosave" },
},
event = {
"InsertLeave",
"TextChanged",
},
opts = {
write_all_buffers = true,
execution_message = { enabled = false },
condition = function(buf)
if not vim.g.auto_save_state then
return false
end
local ft = vim.fn.getbufvar(buf, "&filetype")
return ft ~= "oil" and ft ~= "harpoon"
end,
},
init = function() vim.g.auto_save_state = true end,
},
{
"mbbill/undotree",
keys = {
{ "<leader>u", vim.cmd.UndotreeToggle, desc = "Show undotree" },
},
},
-- TODO: upstream this to vim
"towolf/vim-helm"
}