ref(nvim)

This commit is contained in:
thek4n 2024-04-19 16:13:49 +03:00
parent 2cf073c5c8
commit 86ad684503
2 changed files with 21 additions and 4 deletions

View File

@ -145,16 +145,25 @@ local function reload_config()
vim.notify('Config reloaded...', vim.log.levels.INFO)
end
local function fetch_and_reload_config()
local function fetch_config()
vim.fn.system('git -C ~/dotfiles pull')
end
local function update_plugins()
vim.cmd("Lazy sync")
end
local function fetch_and_reload_config_and_update_plugins()
fetch_config()
reload_config()
update_plugins()
end
map("n", "<Leader>pr", reload_config,
{desc = "Reload config"})
map("n", "<Leader>pR", fetch_and_reload_config,
{desc = "Fetch and reload config"})
map("n", "<Leader>pR", fetch_and_reload_config_and_update_plugins,
{desc = "Fetch and reload config and update plugins"})
vim.cmd([[

View File

@ -81,6 +81,8 @@ return {
},
{
'EdenEast/nightfox.nvim',
lazy = false,
priority = 1000,
config = function()
local colorscheme = require("nightfox")
colorscheme.compile()
@ -89,10 +91,13 @@ return {
end
},
{
'ellisonleao/gruvbox.nvim'
'ellisonleao/gruvbox.nvim',
lazy = true,
},
{
'xiyaowong/transparent.nvim',
lazy = false,
priority = 1000,
config = function()
require("transparent").setup({
exclude_groups = {'CursorLine'},
@ -101,6 +106,7 @@ return {
},
{
'lukas-reineke/virt-column.nvim',
lazy = true,
config = function()
require("virt-column").setup({
virtcolumn = '81'
@ -109,6 +115,7 @@ return {
},
{
'norcalli/nvim-colorizer.lua',
lazy = true,
config = function()
require('colorizer').setup()
end
@ -134,6 +141,7 @@ return {
},
{
'folke/which-key.nvim',
lazy = true,
config = function()
require("which-key").setup()
end