neovim: switch comment toggler, add neogit

This commit is contained in:
tastytea 2022-08-08 19:58:38 +02:00
parent 6912174892
commit 6c938e3d17
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
3 changed files with 19 additions and 2 deletions

View File

@ -5,6 +5,7 @@ require('fileformats')
require('lsp')
require('completion')
require('ui')
require('coding')
if packer_bootstrap then
require('packer').sync()

View File

@ -0,0 +1,18 @@
packer.use { -- toggle comments
'https://github.com/tomtom/tcomment_vim',
config = function()
map('n', '<Leader>c', TComment)
end
}
packer.use {
'https://github.com/TimUntersberger/neogit',
requires = 'https://github.com/nvim-lua/plenary.nvim',
config = function()
require('which-key').setup {
-- commit_popup = {
-- kind = 'split'
-- }
}
end
}

View File

@ -19,8 +19,6 @@ packer.use {
end
}
use 'https://github.com/tpope/vim-commentary' -- toggle comments
-- remove trailing whitespace
function remove_trailing_whitespace()
local curpos = vim.api.nvim_win_get_cursor(0)