aboutsummaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2022-05-02 01:15:28 +0200
committerFranciszek Malinka <franciszek.malinka@gmail.com>2022-05-02 01:15:28 +0200
commit319440802fe48f7526f5d2b40239e1e6b9ae9db7 (patch)
tree4dd666330ab629b0a97d4c3538d206855d797cba /lua/user
parent74e9e1634d593709c2784063953e2ac57d888d71 (diff)
Small updates
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/autocommands.lua7
-rw-r--r--lua/user/plugins.lua5
-rw-r--r--lua/user/session-manager.lua3
3 files changed, 9 insertions, 6 deletions
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)')