update neovim
This commit is contained in:
parent
631d85a771
commit
89c96ca6a8
4 changed files with 112 additions and 105 deletions
|
@ -156,6 +156,7 @@ return {
|
|||
-- },
|
||||
gopls = {
|
||||
capabilities = capabilities,
|
||||
single_file_support = true,
|
||||
},
|
||||
nil_ls = { -- nix
|
||||
capabilities = capabilities,
|
||||
|
|
|
@ -1,19 +1,25 @@
|
|||
return {
|
||||
"rmagatti/auto-session",
|
||||
lazy = false,
|
||||
init = function()
|
||||
vim.o.sessionoptions = "blank,buffers,curdir,folds,tabpages,winsize,winpos,terminal,localoptions,help"
|
||||
end,
|
||||
opts = {
|
||||
auto_session_use_git_branch = true,
|
||||
auto_session_suppress_dirs = { "~/", "sessions", "~/Downloads", "/" },
|
||||
post_cwd_changed_hook = function()
|
||||
U.safeRequire("lualine", function(ll)
|
||||
ll.refresh() -- refresh lualine so the new session name is displayed in the status bar
|
||||
end)
|
||||
end,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("auto-session").setup(opts)
|
||||
end,
|
||||
"rmagatti/auto-session",
|
||||
lazy = false,
|
||||
init = function()
|
||||
vim.o.sessionoptions = "blank,buffers,curdir,folds,tabpages,winsize,winpos,terminal,localoptions,help"
|
||||
end,
|
||||
opts = {
|
||||
auto_session_use_git_branch = true,
|
||||
auto_session_suppress_dirs = { "~/", "sessions", "~/Downloads", "/" },
|
||||
post_cwd_changed_hook = function()
|
||||
U.safeRequire("lualine", function(ll)
|
||||
ll.refresh() -- refresh lualine so the new session name is displayed in the status bar
|
||||
end)
|
||||
end,
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("auto-session").setup(opts)
|
||||
-- Auto save on quit
|
||||
vim.api.nvim_create_autocmd("QuitPre", {
|
||||
callback = function()
|
||||
vim.cmd("SessionSave")
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue