-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
39 lines (32 loc) · 909 Bytes
/
Copy pathinit.lua
File metadata and controls
39 lines (32 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
if vim.loader then
vim.loader.enable()
end
_G.dd = function(...)
require("util.debug").dump(...)
end
vim.print = _G.dd
require("config.lazy")
-- Session manager
if not vim.fn.has("nvim-0.7.0") then
require("session_manager.utils").notify("Neovim 0.7+ is required for session manager plugin", vim.log.levels.ERROR)
return
end
local subcommands = require("session_manager.subcommands")
local session_manager = require("session_manager")
vim.api.nvim_create_user_command(
"SessionManager",
subcommands.run,
{ nargs = 1, bang = true, complete = subcommands.complete, desc = "Run session manager command" }
)
vim.cmd("command! LoadSession SessionManager load_current_dir_session")
vim.cmd("command! SaveSession SessionManager save_current_session")
vim.cmd("command! Q qa")
vim.api.nvim_exec(
[[
augroup AfterVimEnter
autocmd!
autocmd VimEnter * source ~/.vimrc
augroup END
]],
false
)