diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index 07dccb9..8d1e74e 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -40,8 +40,7 @@ require("lazy").setup({ }, { 'neovim/nvim-lspconfig', - init = require('plugins.nvim-lspconfig').init, - priority = 10 + init = require('plugins.nvim-lspconfig').init }, { 'mfussenegger/nvim-lint', @@ -92,10 +91,13 @@ require("lazy").setup({ 'preservim/nerdcommenter', keys = require('plugins.nerdcommenter').keys }, - { 'rmagatti/auto-session' }, + { + 'rmagatti/auto-session', + opts = require('plugins.auto-session').config + }, { 'tpope/vim-fugitive' }, - { 'Glench/Vim-Jinja2-Syntax', priority=15 }, - { 'vmware-archive/salt-vim', priority=10 }, + { 'Glench/Vim-Jinja2-Syntax', priority = 15 }, + { 'vmware-archive/salt-vim', priority = 10 }, { 'stephpy/vim-yaml' }, -- for proper sls syntax highlighting when jinja { 'lukas-reineke/indent-blankline.nvim', @@ -222,13 +224,13 @@ require("lazy").setup({ -- To disable one of the defaults, set it to false -- open lazygit log - ["l"] = function(plugin) + ["l"] = function(plugin) require("lazy.util").float_term({ "lazygit", "log" }, { cwd = plugin.dir, }) end, -- open a terminal for the plugin dir - ["t"] = function(plugin) + ["t"] = function(plugin) require("lazy.util").float_term(nil, { cwd = plugin.dir, }) diff --git a/lua/plugins/auto-session.lua b/lua/plugins/auto-session.lua new file mode 100644 index 0000000..a279e90 --- /dev/null +++ b/lua/plugins/auto-session.lua @@ -0,0 +1,6 @@ +return { + config = { + auto_save_enabled = true, + auto_restore_enabled = true + } +}