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

59 lines
1.4 KiB
Lua
Raw Normal View History

require('my/plugins')
require('my/keymaps')
2022-08-13 17:04:51 +02:00
require('my/tools')
packer.use { -- toggle comments
'https://github.com/tomtom/tcomment_vim',
-- tag = '*' -- reactivate when tagged after 2022-08-15
}
vim.g.tcomment_opleader1 = '<Leader>c'
vim.g.tcomment_mapleader1 = ''
vim.g.tcomment_mapleader2 = ''
packer.use {
'https://github.com/TimUntersberger/neogit',
2022-08-11 15:21:02 +02:00
requires = {
'https://github.com/nvim-lua/plenary.nvim',
'https://github.com/folke/which-key.nvim',
'https://github.com/sindrets/diffview.nvim'
2022-08-11 15:21:02 +02:00
},
}
local neogit = require('neogit')
neogit.setup {
disable_commit_confirmation = true,
kind = 'tab',
integrations = {
diffview = true
}
}
map('n', '<Leader>g', neogit.open)
-- start git commits in insert mode
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' },
command = [[startinsert | 1]]
2022-08-10 17:52:25 +02:00
})
2022-08-09 00:19:29 +02:00
packer.use 'https://github.com/gentoo/gentoo-syntax'
2022-08-10 01:30:02 +02:00
packer.use { -- NOTE: looks abandoned
2022-08-10 01:30:02 +02:00
'https://github.com/jiangmiao/auto-pairs',
config = function()
vim.g.AutoPairsFlyMode = 0
end
}
packer.use 'https://github.com/L3MON4D3/LuaSnip'
require("luasnip.loaders.from_lua").load({
paths = vim.fn.stdpath('config') .. '/snippets'
})