make fugitive window smaller, <leader>gs for git status
This commit is contained in:
parent
71cceef165
commit
f5e86af2da
8
init.lua
8
init.lua
|
|
@ -789,5 +789,13 @@ vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
|
|||
vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' })
|
||||
vim.api.nvim_set_hl(0, 'FloatBorder', { bg = 'none' })
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'fugitive',
|
||||
callback = function()
|
||||
vim.wo.number = false
|
||||
vim.cmd 'resize 15'
|
||||
end,
|
||||
})
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
|
|||
|
|
@ -27,3 +27,5 @@ vim.keymap.set('n', '<leader>cl', function()
|
|||
vim.fn.setreg('+', result)
|
||||
print('Copied: ' .. result)
|
||||
end, { desc = '[C]opy cursor [l]ocation with line number' })
|
||||
|
||||
vim.keymap.set('n', '<leader>gs', ':G<CR>', { desc = 'Git status' })
|
||||
|
|
|
|||
Loading…
Reference in New Issue