nvim: sync
This commit is contained in:
parent
3a11a9eb2b
commit
98f9134cd1
4 changed files with 21 additions and 0 deletions
|
@ -162,6 +162,8 @@ function M.config()
|
|||
-- link('@tag.html', 'htmlTagName')
|
||||
-- link('@tag.attribute.html', 'htmlArg')
|
||||
|
||||
link('WinBar', 'StatusLine')
|
||||
link('WinBarNC', 'StatusLineNC')
|
||||
gr:hl('LineNr', 'gray', 'dark0_hard', linenr_style)
|
||||
gr:hl('LspCodeLens', 'gray', nil, { 'italic' })
|
||||
|
||||
|
@ -177,6 +179,8 @@ function M.config()
|
|||
|
||||
gr:hl('Function', 'light1', nil, {})
|
||||
gr:hl('Operator', 'light1', nil, {})
|
||||
link('Identifier', 'GruvboxBlue')
|
||||
link('Punctuation', 'GruvboxOrange')
|
||||
|
||||
gr:hl('Bold', nil, nil, { 'bold' }, {})
|
||||
gr:hl('Strikethrough', nil, nil, { 'strikethrough' }, {})
|
||||
|
|
|
@ -3,6 +3,7 @@ local M = {
|
|||
keys = {
|
||||
{ '<Space>gg', '<Plug>Lazygit', desc = 'Lazygit' },
|
||||
{ '<Space>gh', '<Plug>GitHistory', desc = 'Git history' },
|
||||
{ '<Space>gB', '<Plug>GitBlame', desc = 'Git Blame' },
|
||||
},
|
||||
lazy = true,
|
||||
}
|
||||
|
@ -32,8 +33,22 @@ function M.config()
|
|||
})
|
||||
end
|
||||
|
||||
local git_blame = function()
|
||||
local file = vim.api.nvim_buf_get_name(0)
|
||||
local cmd = 'git blame ' .. file
|
||||
fterm.scratch({
|
||||
-- ft = 'git_history', -- You can also override the default filetype, if you want
|
||||
cmd = cmd,
|
||||
dimensions = {
|
||||
height = 0.9,
|
||||
width = 0.9,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
vim.keymap.set('n', '<Plug>Lazygit', function() lazygit:toggle() end, { desc = 'Toggle lazygit' })
|
||||
vim.keymap.set('n', '<Plug>GitHistory', git_history, { desc = 'Show git history' })
|
||||
vim.keymap.set('n', '<Plug>GitBlame', git_blame, { desc = 'Show git blame' })
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -241,6 +241,7 @@ return {
|
|||
{ 'ziglang/zig.vim', ft = 'zig' },
|
||||
{ 'chrisbra/csv.vim', ft = 'csv' },
|
||||
{ 'NoahTheDuke/vim-just' },
|
||||
{ 'towolf/vim-helm' },
|
||||
|
||||
|
||||
{ 'williamboman/mason.nvim', cmd = 'Mason', config = true },
|
||||
|
|
|
@ -2,6 +2,7 @@ local M = {
|
|||
'nvim-neo-tree/neo-tree.nvim',
|
||||
branch = 'v2.x',
|
||||
lazy = false,
|
||||
enabled = false,
|
||||
keys = {
|
||||
{ '<Space>ft', [[<Cmd>Neotree toggle<CR>]], desc = 'Toggle Neotree' },
|
||||
{ '<Space>fr', [[<Cmd>Neotree reveal<CR>]], desc = 'Reveal current file in Neotree' },
|
||||
|
|
Loading…
Add table
Reference in a new issue