Added auto-session to nvim and changed lualine's theme from dracula to tokyonight
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||
"LuaSnip": { "branch": "master", "commit": "50fcf17db7c75af80e6b6109acfbfb4504768780" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
||||
"auto-session": { "branch": "main", "commit": "879f5b30207bd53101e1034ca91330f23746f601" },
|
||||
"catppuccin": { "branch": "main", "commit": "c0bea773a09e49e123136b099bce9ddc1bf395d2" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
|
||||
12
.config/nvim/lua/plugins/auto-session.lua
Normal file
12
.config/nvim/lua/plugins/auto-session.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
'rmagatti/auto-session',
|
||||
config = function()
|
||||
vim.opt.sessionoptions = 'blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions'
|
||||
require('auto-session').setup({
|
||||
log_level = 'error',
|
||||
auto_session_suppress_dirs = { '~/', '/' },
|
||||
})
|
||||
local session = require('auto-session.session-lens')
|
||||
vim.keymap.set('n', '<C-s>', session.search_session, { desc = '[S]ession Manager' })
|
||||
end,
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
config = function()
|
||||
-- TODO: Configure this to make the status line fully customizable
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
theme = 'dracula',
|
||||
theme = 'tokyonight',
|
||||
},
|
||||
sections = { lualine_c = { require('auto-session.lib').current_session_name } },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user