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

@ -5,21 +5,17 @@ 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 = ''},
action = 'OpenSession' },
{ icon = '',
desc = 'File Browser ',
action = 'Telescope file_browser',
action = 'NvimTreeToggle',
shortcut = '' },
{ icon = '',
desc = 'Quit ',
action = 'quit',
shortcut = '' },
}
-- hi
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.opt.shiftwidth = 0
vim.opt.backup = false

View file

@ -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 = {

View file

@ -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