Some improvements to the Neovim config

This commit is contained in:
“Henry-Hiles” 2022-10-28 15:04:30 -04:00
parent 6ca41923e5
commit 18a49d5d67
4 changed files with 42 additions and 32 deletions

View file

@ -2,24 +2,20 @@ local db = require('dashboard')
db.hide_tabline = false db.hide_tabline = false
db.custom_center = { db.custom_center = {
{icon = ' ', { icon = ' ',
desc = 'Recently latest session ', desc = 'Recently latest session ',
shortcut = '', shortcut = '',
action ='SessionLoad'}, action = 'OpenSession' },
{icon = '', { icon = '',
desc = 'Recently opened files ', desc = 'File Browser ',
action = 'DashboardFindHistory', action = 'NvimTreeToggle',
shortcut = ''}, shortcut = '' },
{icon = '', { icon = '',
desc = 'Find File ', desc = 'Quit ',
action = 'Telescope find_files find_command=rg,--hidden,--files', action = 'quit',
shortcut = ''}, shortcut = '' },
{icon = '',
desc ='File Browser ',
action = 'Telescope file_browser',
shortcut = ''},
} }
-- hi
db.custom_header = { db.custom_header = {
[[.__ __. _______ ______ ____ ____ __ .___ ___.]], [[.__ __. _______ ______ ____ ____ __ .___ ___.]],
[[| \ | | | ____| / __ \ \ \ / / | | | \/ |]], [[| \ | | | ____| / __ \ \ \ / / | | | \/ |]],

View file

@ -1,3 +1,5 @@
vim.g.session_lock_enabled = 0
vim.g.session_autosave = 'yes'
vim.g.sudo_smart_edit = 1 vim.g.sudo_smart_edit = 1
vim.opt.shiftwidth = 0 vim.opt.shiftwidth = 0
vim.opt.backup = false vim.opt.backup = false

View file

@ -17,6 +17,7 @@ return packer.startup({ function(use)
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
config = config("comment") config = config("comment")
} }
use "xolox/vim-session"
-- Theming -- Theming
use "navarasu/onedark.nvim" use "navarasu/onedark.nvim"
@ -44,6 +45,7 @@ return packer.startup({ function(use)
-- Other -- Other
use { 'glepnir/dashboard-nvim', config = config("dashboard") } use { 'glepnir/dashboard-nvim', config = config("dashboard") }
use "xolox/vim-misc"
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
end, end,
config = { config = {

View file

@ -169,6 +169,16 @@ _G.packer_plugins = {
path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/toggleterm.nvim", path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/toggleterm.nvim",
url = "https://github.com/akinsho/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"] = { ["vim-sleuth"] = {
loaded = true, loaded = true,
path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/vim-sleuth", path = "/home/quadradical/.local/share/nvim/site/pack/packer/start/vim-sleuth",
@ -177,6 +187,14 @@ _G.packer_plugins = {
} }
time([[Defining packer_plugins]], false) 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 -- Config for: nvim-treesitter
time([[Config for nvim-treesitter]], true) time([[Config for nvim-treesitter]], true)
require "config.treesitter" require "config.treesitter"
@ -209,14 +227,6 @@ time([[Config for toggleterm.nvim]], false)
time([[Config for nvim-tree.lua]], true) time([[Config for nvim-tree.lua]], true)
require "config.nvim-tree" require "config.nvim-tree"
time([[Config for nvim-tree.lua]], false) 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 _G._packer.inside_compile = false
if _G._packer.needs_bufread == true then if _G._packer.needs_bufread == true then