fix autosave plugin settings

This commit is contained in:
Maciej Lebiest 2023-05-02 20:33:56 +02:00
parent a77c14a94c
commit 5cefd8c21e
2 changed files with 15 additions and 7 deletions

View file

@ -40,8 +40,7 @@ require("lazy").setup({
}, },
{ {
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
init = require('plugins.nvim-lspconfig').init, init = require('plugins.nvim-lspconfig').init
priority = 10
}, },
{ {
'mfussenegger/nvim-lint', 'mfussenegger/nvim-lint',
@ -92,10 +91,13 @@ require("lazy").setup({
'preservim/nerdcommenter', 'preservim/nerdcommenter',
keys = require('plugins.nerdcommenter').keys keys = require('plugins.nerdcommenter').keys
}, },
{ 'rmagatti/auto-session' }, {
'rmagatti/auto-session',
opts = require('plugins.auto-session').config
},
{ 'tpope/vim-fugitive' }, { 'tpope/vim-fugitive' },
{ 'Glench/Vim-Jinja2-Syntax', priority=15 }, { 'Glench/Vim-Jinja2-Syntax', priority = 15 },
{ 'vmware-archive/salt-vim', priority=10 }, { 'vmware-archive/salt-vim', priority = 10 },
{ 'stephpy/vim-yaml' }, -- for proper sls syntax highlighting when jinja { 'stephpy/vim-yaml' }, -- for proper sls syntax highlighting when jinja
{ {
'lukas-reineke/indent-blankline.nvim', 'lukas-reineke/indent-blankline.nvim',
@ -222,13 +224,13 @@ require("lazy").setup({
-- To disable one of the defaults, set it to false -- To disable one of the defaults, set it to false
-- open lazygit log -- open lazygit log
["<localleader>l"] = function(plugin) ["<localleader>l"] = function(plugin)
require("lazy.util").float_term({ "lazygit", "log" }, { require("lazy.util").float_term({ "lazygit", "log" }, {
cwd = plugin.dir, cwd = plugin.dir,
}) })
end, end,
-- open a terminal for the plugin dir -- open a terminal for the plugin dir
["<localleader>t"] = function(plugin) ["<localleader>t"] = function(plugin)
require("lazy.util").float_term(nil, { require("lazy.util").float_term(nil, {
cwd = plugin.dir, cwd = plugin.dir,
}) })

View file

@ -0,0 +1,6 @@
return {
config = {
auto_save_enabled = true,
auto_restore_enabled = true
}
}