..
This commit is contained in:
@@ -34,7 +34,7 @@ M.ui = {
|
||||
theme = "default", -- default/vscode/vscode_colored/minimal
|
||||
-- default/round/block/arrow separators work only for default statusline theme
|
||||
-- round and block will work for minimal theme only
|
||||
separator_style = "default",
|
||||
separator_style = "arrow",
|
||||
overriden_modules = nil,
|
||||
},
|
||||
|
||||
@@ -44,6 +44,9 @@ M.ui = {
|
||||
enabled = true,
|
||||
lazyload = true,
|
||||
overriden_modules = nil,
|
||||
buttons = function()
|
||||
return ""
|
||||
end,
|
||||
},
|
||||
|
||||
-- nvdash (dashboard)
|
||||
|
||||
@@ -5,8 +5,8 @@ local M = {}
|
||||
local highlights = require "custom.highlights"
|
||||
|
||||
M.ui = {
|
||||
theme = "ashes",
|
||||
theme_toggle = { "ashes", "one_light" },
|
||||
theme = "chadtain",
|
||||
theme_toggle = { "chadtain", "one_light" },
|
||||
|
||||
hl_override = highlights.override,
|
||||
hl_add = highlights.add,
|
||||
|
||||
@@ -44,6 +44,9 @@ M.general = {
|
||||
["<leader>b"] = { "<cmd> Telescope buffers <CR>", "Find buffers" },
|
||||
|
||||
-- ["<A-Space>"] = cmp.mapping.complete(),
|
||||
|
||||
["gu"] = { "<cmd>diffget //2<CR>", "Select left in conflict"},
|
||||
["gh"] = { "<cmd>diffget //3<CR>", "Select right in conflict"},
|
||||
},
|
||||
v = {
|
||||
[">"] = { ">gv", "indent" },
|
||||
|
||||
@@ -126,8 +126,21 @@ local plugins = {
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
lazy = false,
|
||||
opts = { max_lines = 6 },
|
||||
},
|
||||
|
||||
{ "tpope/vim-surround", lazy = false },
|
||||
|
||||
{ "tpope/vim-fugitive" },
|
||||
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
enabled = false,
|
||||
},
|
||||
|
||||
-- To make a plugin not be loaded
|
||||
-- {
|
||||
-- "NvChad/nvim-colorizer.lua",
|
||||
|
||||
@@ -96,18 +96,16 @@ local default_plugins = {
|
||||
vim.api.nvim_create_autocmd({ "BufRead" }, {
|
||||
group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }),
|
||||
callback = function()
|
||||
vim.fn.jobstart({"git", "-C", vim.loop.cwd(), "rev-parse"},
|
||||
{
|
||||
on_exit = function(_, return_code)
|
||||
if return_code == 0 then
|
||||
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
|
||||
vim.schedule(function()
|
||||
require("lazy").load { plugins = { "gitsigns.nvim" } }
|
||||
end)
|
||||
end
|
||||
vim.fn.jobstart({ "git", "-C", vim.loop.cwd(), "rev-parse" }, {
|
||||
on_exit = function(_, return_code)
|
||||
if return_code == 0 then
|
||||
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
|
||||
vim.schedule(function()
|
||||
require("lazy").load { plugins = { "gitsigns.nvim" } }
|
||||
end)
|
||||
end
|
||||
}
|
||||
)
|
||||
end,
|
||||
})
|
||||
end,
|
||||
})
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user