My changes
This commit is contained in:
parent
609808366b
commit
889ba25939
7 changed files with 49 additions and 9 deletions
16
init.lua
16
init.lua
|
|
@ -738,6 +738,15 @@ require('lazy').setup({
|
|||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = 'gnn',
|
||||
node_incremental = 'grn',
|
||||
scope_incremental = 'grc',
|
||||
node_decremental = 'grm',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- There are additional nvim-treesitter modules that you can use to interact
|
||||
|
|
@ -769,5 +778,12 @@ require('lazy').setup({
|
|||
{ import = 'custom.plugins' },
|
||||
}, {})
|
||||
|
||||
local git_group = vim.api.nvim_create_augroup('Git', { clear = true })
|
||||
vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, {
|
||||
command = "0r!git rev-parse --symbolic-full-name --abbrev-ref HEAD | tr '[:lower:]' '[:upper:]' | egrep -o \"^[A-Z][A-Z0-9]+-[0-9]+\"",
|
||||
group = git_group,
|
||||
pattern = vim.fn.expand 'COMMIT_EDITMSG',
|
||||
})
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue