add gitsigns features toggles
In options.lua you can now set: - vim.g.git_line_hl: to enable line highlights - vim.g.git_word_hl: to enable word highlights
This commit is contained in:
@@ -31,6 +31,13 @@ vim.g.lazyvim_python_lsp = "pyright" ---@type string Options: [python
|
||||
-- Use tiny-inline-diagnostic
|
||||
vim.g.usetinyinline = true ---@type boolean Options: <true|false>
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ GIT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
-- Highlight lines with git changes
|
||||
vim.g.git_line_hl = false ---@type boolean Options: <true|false>
|
||||
-- Highlight words with git changes
|
||||
vim.g.git_word_hl = false ---@type boolean Options: <true|false>
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━ FORMAT AND SAVE ━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
vim.opt.foldlevel = 99 ---@type integer Options: <0-99>
|
||||
@@ -41,7 +48,6 @@ vim.g.autosave = true ---@type boolean Options: <true|
|
||||
-- Enable encouraging feedback
|
||||
vim.g.encourage_me = true ---@type boolean Options: <true|false>
|
||||
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ MISCELLANEOUS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
-- Use WakaTime for code stats
|
||||
|
||||
+10
-15
@@ -12,20 +12,6 @@ return {
|
||||
keys = require('data.keys').gist.func,
|
||||
config = true,
|
||||
},
|
||||
-- { -- LazyGit
|
||||
-- 'kdheepak/lazygit.nvim',
|
||||
-- lazy = true,
|
||||
-- cmd = require('data.cmd').lazygit,
|
||||
-- keys = require('data.keys').lazygit,
|
||||
-- dependencies = require('data.deps').lazygit,
|
||||
-- config = function()
|
||||
-- if
|
||||
-- require('data.func').check_global_var('use_telescope', true, false)
|
||||
-- then
|
||||
-- require('telescope').load_extension('lazygit')
|
||||
-- end
|
||||
-- end,
|
||||
-- },
|
||||
{ -- Thanks/github-stars
|
||||
'jsongerber/thanks.nvim',
|
||||
lazy = true,
|
||||
@@ -54,7 +40,7 @@ return {
|
||||
'sindrets/diffview.nvim',
|
||||
lazy = true,
|
||||
cmd = require('data.cmd').diffview,
|
||||
opts = {},
|
||||
opts = require('data.types').diffview.opts,
|
||||
},
|
||||
{ -- Neogit
|
||||
'NeogitOrg/neogit',
|
||||
@@ -62,4 +48,13 @@ return {
|
||||
graph_style = 'kitty',
|
||||
},
|
||||
},
|
||||
{ -- GitSigns
|
||||
'lewis6991/gitsigns.nvim',
|
||||
opts = function()
|
||||
local myopts = {}
|
||||
myopts.linehl = vim.g.git_line_hl or false
|
||||
myopts.word_diff = vim.g.git_word_hl or false
|
||||
return myopts
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user