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
|
-- Use tiny-inline-diagnostic
|
||||||
vim.g.usetinyinline = true ---@type boolean Options: <true|false>
|
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 ━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━ FORMAT AND SAVE ━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||||
|
|
||||||
vim.opt.foldlevel = 99 ---@type integer Options: <0-99>
|
vim.opt.foldlevel = 99 ---@type integer Options: <0-99>
|
||||||
@@ -41,7 +48,6 @@ vim.g.autosave = true ---@type boolean Options: <true|
|
|||||||
-- Enable encouraging feedback
|
-- Enable encouraging feedback
|
||||||
vim.g.encourage_me = true ---@type boolean Options: <true|false>
|
vim.g.encourage_me = true ---@type boolean Options: <true|false>
|
||||||
|
|
||||||
|
|
||||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ MISCELLANEOUS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ MISCELLANEOUS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||||
|
|
||||||
-- Use WakaTime for code stats
|
-- Use WakaTime for code stats
|
||||||
|
|||||||
+10
-15
@@ -12,20 +12,6 @@ return {
|
|||||||
keys = require('data.keys').gist.func,
|
keys = require('data.keys').gist.func,
|
||||||
config = true,
|
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
|
{ -- Thanks/github-stars
|
||||||
'jsongerber/thanks.nvim',
|
'jsongerber/thanks.nvim',
|
||||||
lazy = true,
|
lazy = true,
|
||||||
@@ -54,7 +40,7 @@ return {
|
|||||||
'sindrets/diffview.nvim',
|
'sindrets/diffview.nvim',
|
||||||
lazy = true,
|
lazy = true,
|
||||||
cmd = require('data.cmd').diffview,
|
cmd = require('data.cmd').diffview,
|
||||||
opts = {},
|
opts = require('data.types').diffview.opts,
|
||||||
},
|
},
|
||||||
{ -- Neogit
|
{ -- Neogit
|
||||||
'NeogitOrg/neogit',
|
'NeogitOrg/neogit',
|
||||||
@@ -62,4 +48,13 @@ return {
|
|||||||
graph_style = 'kitty',
|
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