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

42 lines
905 B
Lua
Raw Normal View History

require('my/plugins')
require('my/keymaps')
2022-08-13 17:04:51 +02:00
require('my/tools')
vim.g.tcomment_opleader1 = '<Leader>c'
vim.g.tcomment_mapleader1 = ''
vim.g.tcomment_mapleader2 = ''
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
vim.api.nvim_create_autocmd(
{ 'FileType' },
{
group = 'config_coding',
pattern = { 'Neogit*' },
command = [[set nolist]]
})
require("luasnip.loaders.from_lua").load({
paths = vim.fn.stdpath('config') .. '/snippets'
})