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.html', 'htmlTagName')
|
||||||
-- link('@tag.attribute.html', 'htmlArg')
|
-- link('@tag.attribute.html', 'htmlArg')
|
||||||
|
|
||||||
|
link('WinBar', 'StatusLine')
|
||||||
|
link('WinBarNC', 'StatusLineNC')
|
||||||
gr:hl('LineNr', 'gray', 'dark0_hard', linenr_style)
|
gr:hl('LineNr', 'gray', 'dark0_hard', linenr_style)
|
||||||
gr:hl('LspCodeLens', 'gray', nil, { 'italic' })
|
gr:hl('LspCodeLens', 'gray', nil, { 'italic' })
|
||||||
|
|
||||||
|
@ -177,6 +179,8 @@ function M.config()
|
||||||
|
|
||||||
gr:hl('Function', 'light1', nil, {})
|
gr:hl('Function', 'light1', nil, {})
|
||||||
gr:hl('Operator', 'light1', nil, {})
|
gr:hl('Operator', 'light1', nil, {})
|
||||||
|
link('Identifier', 'GruvboxBlue')
|
||||||
|
link('Punctuation', 'GruvboxOrange')
|
||||||
|
|
||||||
gr:hl('Bold', nil, nil, { 'bold' }, {})
|
gr:hl('Bold', nil, nil, { 'bold' }, {})
|
||||||
gr:hl('Strikethrough', nil, nil, { 'strikethrough' }, {})
|
gr:hl('Strikethrough', nil, nil, { 'strikethrough' }, {})
|
||||||
|
|
|
@ -3,6 +3,7 @@ local M = {
|
||||||
keys = {
|
keys = {
|
||||||
{ '<Space>gg', '<Plug>Lazygit', desc = 'Lazygit' },
|
{ '<Space>gg', '<Plug>Lazygit', desc = 'Lazygit' },
|
||||||
{ '<Space>gh', '<Plug>GitHistory', desc = 'Git history' },
|
{ '<Space>gh', '<Plug>GitHistory', desc = 'Git history' },
|
||||||
|
{ '<Space>gB', '<Plug>GitBlame', desc = 'Git Blame' },
|
||||||
},
|
},
|
||||||
lazy = true,
|
lazy = true,
|
||||||
}
|
}
|
||||||
|
@ -32,8 +33,22 @@ function M.config()
|
||||||
})
|
})
|
||||||
end
|
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>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>GitHistory', git_history, { desc = 'Show git history' })
|
||||||
|
vim.keymap.set('n', '<Plug>GitBlame', git_blame, { desc = 'Show git blame' })
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -241,6 +241,7 @@ return {
|
||||||
{ 'ziglang/zig.vim', ft = 'zig' },
|
{ 'ziglang/zig.vim', ft = 'zig' },
|
||||||
{ 'chrisbra/csv.vim', ft = 'csv' },
|
{ 'chrisbra/csv.vim', ft = 'csv' },
|
||||||
{ 'NoahTheDuke/vim-just' },
|
{ 'NoahTheDuke/vim-just' },
|
||||||
|
{ 'towolf/vim-helm' },
|
||||||
|
|
||||||
|
|
||||||
{ 'williamboman/mason.nvim', cmd = 'Mason', config = true },
|
{ 'williamboman/mason.nvim', cmd = 'Mason', config = true },
|
||||||
|
|
|
@ -2,6 +2,7 @@ local M = {
|
||||||
'nvim-neo-tree/neo-tree.nvim',
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
branch = 'v2.x',
|
branch = 'v2.x',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
enabled = false,
|
||||||
keys = {
|
keys = {
|
||||||
{ '<Space>ft', [[<Cmd>Neotree toggle<CR>]], desc = 'Toggle Neotree' },
|
{ '<Space>ft', [[<Cmd>Neotree toggle<CR>]], desc = 'Toggle Neotree' },
|
||||||
{ '<Space>fr', [[<Cmd>Neotree reveal<CR>]], desc = 'Reveal current file in Neotree' },
|
{ '<Space>fr', [[<Cmd>Neotree reveal<CR>]], desc = 'Reveal current file in Neotree' },
|
||||||
|
|
Loading…
Add table
Reference in a new issue