1
0
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
98f9134cd1 nvim: sync 2024-01-18 15:45:11 +01:00
3a11a9eb2b kitty: fix some fonts 2024-01-18 15:44:54 +01:00
5 changed files with 22 additions and 1 deletions

View file

@ -50,7 +50,7 @@ font_size 12.0
#: to get BIDI support, because it will force kitty to always treat
#: the text as LTR, which FriBidi expects for terminals.
symbol_map U+E000-U+F8FF Symbols Nerd Font Mono
symbol_map U+E000-U+F8FF,U+F0001-U+F1FFF Symbols Nerd Font Mono
#: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols

View file

@ -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' }, {})

View file

@ -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

View file

@ -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 },

View file

@ -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' },