dotfiles/.config/nvim/lua/coding.lua
tastytea baf6550b8a
nvim: remove syntactic
It spawned windows everywhere without me telling it to.
2022-08-09 21:38:30 +02:00

34 lines
882 B
Lua

packer.use { -- toggle comments
'https://github.com/tomtom/tcomment_vim',
config = function()
map('n', '<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'
-- }
}
end,
map('n', '<Leader>g', ':Neogit<cr>')
}
vim.api.nvim_create_autocmd('FileType', {
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
})
packer.use {
'https://github.com/gentoo/gentoo-syntax',
ft = 'ebuild'
}