add auto session

This commit is contained in:
xfy
2024-09-10 16:09:10 +08:00
parent aa02ca9e1e
commit 2fcdb3cf7a
4 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
"alpha-nvim": { "branch": "main", "commit": "b6f4129302db197a7249e67a90de3f2b676de13e" },
"auto-session": { "branch": "main", "commit": "a90aa7730efa60fdcc7e00497a8f36d94a6da709" },
"bufferline.nvim": { "branch": "main", "commit": "2e3c8cc5a57ddd32f1edd2ffd2ccb10c09421f6c" },
"catppuccin": { "branch": "main", "commit": "4fd72a9ab64b393c2c22b168508fd244877fec96" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },

View File

@ -51,7 +51,7 @@ opt.inccommand = "nosplit" -- preview incremental substitute
opt.jumpoptions = "view"
opt.laststatus = 3 -- global statusline
opt.linebreak = true -- Wrap lines at convenient points
opt.list = true -- Show some invisible characters (tabs...
-- opt.list = true -- Show some invisible characters (tabs...
opt.mouse = "a" -- Enable mouse mode
opt.number = true -- Print line number
opt.pumblend = 10 -- Popup blend

View File

@ -0,0 +1,16 @@
return {
"rmagatti/auto-session",
lazy = true,
event = "VeryLazy",
dependencies = {
"nvim-telescope/telescope.nvim", -- Only needed if you want to use session lens
},
---enables autocomplete for opts
---@module "auto-session"
---@type AutoSession.Config
opts = {
suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
auto_restore = false,
-- log_level = 'debug',
},
}

View File

@ -77,6 +77,7 @@ return {
end,
["vtsls"] = function()
lspconfig["vtsls"].setup(require("rua.config.vtsls"))
map("n", "<leader>co", "<cmd> OrganizeImports <CR>", { desc = "Organize imports" })
end,
["lua_ls"] = function()
lspconfig["lua_ls"].setup({