From 319440802fe48f7526f5d2b40239e1e6b9ae9db7 Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Mon, 2 May 2022 01:15:28 +0200 Subject: Small updates --- lua/user/autocommands.lua | 7 +++++++ lua/user/plugins.lua | 5 +---- lua/user/session-manager.lua | 3 +-- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 lua/user/autocommands.lua (limited to 'lua/user') diff --git a/lua/user/autocommands.lua b/lua/user/autocommands.lua new file mode 100644 index 0000000..be2c737 --- /dev/null +++ b/lua/user/autocommands.lua @@ -0,0 +1,7 @@ +vim.cmd [[ + augroup _markdown + autocmd! + autocmd FileType markdown setlocal wrap + autocmd FileType markdown setlocal spell + augroup end +]] diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index b3a5aa0..fd58732 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -86,10 +86,7 @@ return packer.startup(function(use) use "akinsho/bufferline.nvim" use "goolord/alpha-nvim" - use { - "Shatur/neovim-session-manager", - commit = "2d42185c859907ab600dd2d0ebd8d1764eec5b58" - } + use "Shatur/neovim-session-manager" if PACKER_BOOTSTRAP then require("packer").sync() end diff --git a/lua/user/session-manager.lua b/lua/user/session-manager.lua index 874c27c..101f873 100644 --- a/lua/user/session-manager.lua +++ b/lua/user/session-manager.lua @@ -7,6 +7,5 @@ local Path = require('plenary.path') session_manager.setup({ sessions_dir = Path:new(vim.fn.stdpath('data'), '.sessions'), autoload_mode = require("session_manager.config").AutoloadMode.Disabled, + autosave_only_in_session = true, -- I don't like that a session is created for every opened dir }) - --- vim.cmd('autocmd User SessionLoadPost lua require"nvim-tree".toggle(false, true)') -- cgit v1.2.3