This commit is contained in:
2023-12-17 00:54:17 -05:00
parent fb4b0a7261
commit b16dc0991b
5 changed files with 31 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ M.ui = {
theme = "default", -- default/vscode/vscode_colored/minimal theme = "default", -- default/vscode/vscode_colored/minimal
-- default/round/block/arrow separators work only for default statusline theme -- default/round/block/arrow separators work only for default statusline theme
-- round and block will work for minimal theme only -- round and block will work for minimal theme only
separator_style = "default", separator_style = "arrow",
overriden_modules = nil, overriden_modules = nil,
}, },
@@ -44,6 +44,9 @@ M.ui = {
enabled = true, enabled = true,
lazyload = true, lazyload = true,
overriden_modules = nil, overriden_modules = nil,
buttons = function()
return ""
end,
}, },
-- nvdash (dashboard) -- nvdash (dashboard)

View File

@@ -5,8 +5,8 @@ local M = {}
local highlights = require "custom.highlights" local highlights = require "custom.highlights"
M.ui = { M.ui = {
theme = "ashes", theme = "chadtain",
theme_toggle = { "ashes", "one_light" }, theme_toggle = { "chadtain", "one_light" },
hl_override = highlights.override, hl_override = highlights.override,
hl_add = highlights.add, hl_add = highlights.add,

View File

@@ -44,6 +44,9 @@ M.general = {
["<leader>b"] = { "<cmd> Telescope buffers <CR>", "Find buffers" }, ["<leader>b"] = { "<cmd> Telescope buffers <CR>", "Find buffers" },
-- ["<A-Space>"] = cmp.mapping.complete(), -- ["<A-Space>"] = cmp.mapping.complete(),
["gu"] = { "<cmd>diffget //2<CR>", "Select left in conflict"},
["gh"] = { "<cmd>diffget //3<CR>", "Select right in conflict"},
}, },
v = { v = {
[">"] = { ">gv", "indent" }, [">"] = { ">gv", "indent" },

View File

@@ -126,8 +126,21 @@ local plugins = {
end, end,
}, },
{
"nvim-treesitter/nvim-treesitter-context",
lazy = false,
opts = { max_lines = 6 },
},
{ "tpope/vim-surround", lazy = false }, { "tpope/vim-surround", lazy = false },
{ "tpope/vim-fugitive" },
{
"lukas-reineke/indent-blankline.nvim",
enabled = false,
},
-- To make a plugin not be loaded -- To make a plugin not be loaded
-- { -- {
-- "NvChad/nvim-colorizer.lua", -- "NvChad/nvim-colorizer.lua",

View File

@@ -96,8 +96,7 @@ local default_plugins = {
vim.api.nvim_create_autocmd({ "BufRead" }, { vim.api.nvim_create_autocmd({ "BufRead" }, {
group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }), group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }),
callback = function() callback = function()
vim.fn.jobstart({"git", "-C", vim.loop.cwd(), "rev-parse"}, vim.fn.jobstart({ "git", "-C", vim.loop.cwd(), "rev-parse" }, {
{
on_exit = function(_, return_code) on_exit = function(_, return_code)
if return_code == 0 then if return_code == 0 then
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad" vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
@@ -105,9 +104,8 @@ local default_plugins = {
require("lazy").load { plugins = { "gitsigns.nvim" } } require("lazy").load { plugins = { "gitsigns.nvim" } }
end) end)
end end
end end,
} })
)
end, end,
}) })
end, end,