diff --git a/config/nvim/lua/config/dashboard.lua b/config/nvim/lua/config/dashboard.lua index 645edb1..8a8cce7 100644 --- a/config/nvim/lua/config/dashboard.lua +++ b/config/nvim/lua/config/dashboard.lua @@ -2,30 +2,26 @@ local db = require('dashboard') db.hide_tabline = false db.custom_center = { - {icon = ' ', - desc = 'Recently latest session ', - shortcut = '', - action ='SessionLoad'}, - {icon = ' ', - desc = 'Recently opened files ', - action = 'DashboardFindHistory', - shortcut = ''}, - {icon = ' ', - desc = 'Find File ', - action = 'Telescope find_files find_command=rg,--hidden,--files', - shortcut = ''}, - {icon = ' ', - desc ='File Browser ', - action = 'Telescope file_browser', - shortcut = ''}, + { icon = ' ', + desc = 'Recently latest session ', + shortcut = '', + action = 'OpenSession' }, + { icon = ' ', + desc = 'File Browser ', + action = 'NvimTreeToggle', + shortcut = '' }, + { icon = '❌', + desc = 'Quit ', + action = 'quit', + shortcut = '' }, } - +-- hi db.custom_header = { - [[.__ __. _______ ______ ____ ____ __ .___ ___.]], - [[| \ | | | ____| / __ \ \ \ / / | | | \/ |]], - [[| \| | | |__ | | | | \ \/ / | | | \ / |]], - [[| . ` | | __| | | | | \ / | | | |\/| |]], - [[| |\ | | |____ | `--' | \ / | | | | | |]], - [[|__| \__| |_______| \______/ \__/ |__| |__| |__|]], - [[ ]] + [[.__ __. _______ ______ ____ ____ __ .___ ___.]], + [[| \ | | | ____| / __ \ \ \ / / | | | \/ |]], + [[| \| | | |__ | | | | \ \/ / | | | \ / |]], + [[| . ` | | __| | | | | \ / | | | |\/| |]], + [[| |\ | | |____ | `--' | \ / | | | | | |]], + [[|__| \__| |_______| \______/ \__/ |__| |__| |__|]], + [[ ]] } diff --git a/config/nvim/lua/options.lua b/config/nvim/lua/options.lua index 0ae472e..052cd6a 100644 --- a/config/nvim/lua/options.lua +++ b/config/nvim/lua/options.lua @@ -1,3 +1,5 @@ +vim.g.session_lock_enabled = 0 +vim.g.session_autosave = 'yes' vim.g.sudo_smart_edit = 1 vim.opt.shiftwidth = 0 vim.opt.backup = false diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 60f84d2..59549e0 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -17,6 +17,7 @@ return packer.startup({ function(use) "numToStr/Comment.nvim", config = config("comment") } + use "xolox/vim-session" -- Theming use "navarasu/onedark.nvim" @@ -44,6 +45,7 @@ return packer.startup({ function(use) -- Other use { 'glepnir/dashboard-nvim', config = config("dashboard") } + use "xolox/vim-misc" use 'wbthomason/packer.nvim' end, config = { diff --git a/config/nvim/plugin/packer_compiled.lua b/config/nvim/plugin/packer_compiled.lua index 88e7171..cb12a35 100644 --- a/config/nvim/plugin/packer_compiled.lua +++ b/config/nvim/plugin/packer_compiled.lua @@ -169,6 +169,16 @@ _G.packer_plugins = { path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", url = "https://github.com/akinsho/toggleterm.nvim" }, + ["vim-misc"] = { + loaded = true, + path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/vim-misc", + url = "https://github.com/xolox/vim-misc" + }, + ["vim-session"] = { + loaded = true, + path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/vim-session", + url = "https://github.com/xolox/vim-session" + }, ["vim-sleuth"] = { loaded = true, path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/vim-sleuth", @@ -177,6 +187,14 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) +-- Config for: indent-blankline.nvim +time([[Config for indent-blankline.nvim]], true) +require "config.indent-blankline" +time([[Config for indent-blankline.nvim]], false) +-- Config for: Comment.nvim +time([[Config for Comment.nvim]], true) +require "config.comment" +time([[Config for Comment.nvim]], false) -- Config for: nvim-treesitter time([[Config for nvim-treesitter]], true) require "config.treesitter" @@ -209,14 +227,6 @@ time([[Config for toggleterm.nvim]], false) time([[Config for nvim-tree.lua]], true) require "config.nvim-tree" time([[Config for nvim-tree.lua]], false) --- Config for: indent-blankline.nvim -time([[Config for indent-blankline.nvim]], true) -require "config.indent-blankline" -time([[Config for indent-blankline.nvim]], false) --- Config for: Comment.nvim -time([[Config for Comment.nvim]], true) -require "config.comment" -time([[Config for Comment.nvim]], false) _G._packer.inside_compile = false if _G._packer.needs_bufread == true then