neovim: switch comment toggler, add neogit
This commit is contained in:
parent
6912174892
commit
6c938e3d17
|
@ -5,6 +5,7 @@ require('fileformats')
|
||||||
require('lsp')
|
require('lsp')
|
||||||
require('completion')
|
require('completion')
|
||||||
require('ui')
|
require('ui')
|
||||||
|
require('coding')
|
||||||
|
|
||||||
if packer_bootstrap then
|
if packer_bootstrap then
|
||||||
require('packer').sync()
|
require('packer').sync()
|
||||||
|
|
18
.config/nvim/lua/coding.lua
Normal file
18
.config/nvim/lua/coding.lua
Normal 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
|
||||||
|
}
|
|
@ -19,8 +19,6 @@ packer.use {
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
use 'https://github.com/tpope/vim-commentary' -- toggle comments
|
|
||||||
|
|
||||||
-- remove trailing whitespace
|
-- remove trailing whitespace
|
||||||
function remove_trailing_whitespace()
|
function remove_trailing_whitespace()
|
||||||
local curpos = vim.api.nvim_win_get_cursor(0)
|
local curpos = vim.api.nvim_win_get_cursor(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user