aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua3
-rw-r--r--lua/user/autocommands.lua7
-rw-r--r--lua/user/plugins.lua5
-rw-r--r--lua/user/session-manager.lua3
4 files changed, 11 insertions, 7 deletions
diff --git a/init.lua b/init.lua
index 24a1e21..f4d1433 100644
--- a/init.lua
+++ b/init.lua
@@ -7,7 +7,7 @@ require "user.cmp"
require "user.lsp"
require "user.treesitter"
require "user.impatient"
-require "user.project"
+-- require "user.project" -- probably don't need this if I have session manager
require "user.neoscroll"
require "user.commentstring"
require "user.bufferline"
@@ -20,3 +20,4 @@ require "user.nvimtree"
require "user.keymaps"
require "user.options"
require "user.config"
+require "user.autocommands"
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)')