vim auto sessions

This commit is contained in:
spike 2022-08-22 17:00:11 +02:00
parent 6c4e49cac4
commit 826f75cb6d
3 changed files with 15 additions and 7 deletions

View File

@ -137,6 +137,7 @@ M.general = {--{{{
["g."] = {":cwd<CR>", "change dir to current file", opts = { remap = true}},
["<leader>g."] = {":Gcd<CR>", "change dir to git root"},
-- Packer commands
["<leader>ps"] = {"<cmd> PackerSync <CR>", "packer sync"},

View File

@ -17,10 +17,6 @@ M.ui = {
M.plugins = {
user = require "custom.plugins",
override = {
["nvim-treesitter/nvim-treesitter"] = {
}
}
}
return M

View File

@ -21,6 +21,7 @@ return {
disable = true
},
["ibhagwan/fzf-lua"] = {
lock = true,
after = "ui",
config = function()
require("custom.plugins.configs.fzflua")
@ -41,9 +42,17 @@ return {
["tpope/vim-fugitive"] = {
cmd = "G*"
},
-- restore view
["vim-scripts/restore_view.vim"] = {},
["rmagatti/auto-session"] = {
config = function ()
require("auto-session").setup {
log_level = "error",
auto_session_suppress_dirs = {"~/", "~/projects", "/"}
}
end
},
-- repeat operator for plugin commands
["tpope/vim-repeat"] = {
keys = {"."},
@ -56,7 +65,6 @@ return {
]]
end
},
-- Read info files
["https://gitlab.com/HiPhish/info.vim.git"] = {
cmd = "Info",
@ -84,5 +92,8 @@ return {
["honza/vim-snippets"] = {
module = {"cmp", "cmp_nvim_lsp"},
event = "InsertEnter",
}
},
-- ["ray-x/navigator.lua"] = {
-- after = "nvim-lspconfig"
-- }
}