dotfiles/.config/nvim/lua/coding.lua

46 lines
1.1 KiB
Lua
Raw Normal View History

require('keymaps')
packer.use { -- toggle comments
'https://github.com/tomtom/tcomment_vim',
config = function()
map({ 'n', 'v' }, '<Leader>c', ':TComment<cr>')
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'
-- }
}
2022-08-08 20:14:58 +02:00
end,
map('n', '<Leader>g', ':Neogit<cr>')
}
2022-08-10 17:52:25 +02:00
vim.api.nvim_create_augroup('config_coding', { clear = true })
vim.api.nvim_create_autocmd(
{ 'FileType' },
{
group = 'config_coding',
pattern = { 'gitcommit', 'gitrebase' },
callback = function()
-- FIXME: why does the autocmd in settings.lua not set it?
vim.wo.colorcolumn = tostring(vim.o.textwidth)
vim.cmd([[startinsert | 1]])
end
})
2022-08-09 00:19:29 +02:00
packer.use {
'https://github.com/gentoo/gentoo-syntax'
2022-08-09 00:19:29 +02:00
}
2022-08-10 01:30:02 +02:00
packer.use {
'https://github.com/jiangmiao/auto-pairs',
config = function()
vim.g.AutoPairsFlyMode = 0
end
}