Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
d0zingcat
2022-08-31 11:02:46 +08:00
committed by Lee Tang
parent 63caa4a067
commit bf3e72eb71
4 changed files with 16 additions and 23 deletions

View File

@@ -2,7 +2,7 @@
defaultBranch = main
[user]
email = i@d0zingcat.dev
name = d0zingcat
name = Lee Tang
signingkey = 39E301C2
[url "https://"]
insteadOf = git://
@@ -22,7 +22,8 @@
cmd = difft "$LOCAL" "$REMOTE"
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
pr = pull --rebase origin master
pr = pull --rebase origin
unstage = reset HEAD --
p = push
st = status
co = checkout

View File

@@ -1,8 +0,0 @@
local map = require('utils').map
local g = vim.g
-- nerdcommenter
map('', '<leader>cc', 'V}:call NERDComment("x", "toggle")<CR>')
map('', '<leader>cu', 'V{:call NERDComment("x", "toggle")<CR>')
g['NERDTrimTrailingWhitespace'] = 1
g['NERDSpaceDelims'] = 1

View File

@@ -72,11 +72,11 @@ return require('packer').startup(function(use)
use('wakatime/vim-wakatime')
--use('psf/black')
use({
'preservim/nerdcommenter',
'numToStr/Comment.nvim',
config = function()
require('config.nvim_vimgo')
require('Comment').setup()
end,
})
})
use({
'windwp/nvim-autopairs',
config = function()

View File

@@ -48,14 +48,14 @@ return {
--{ key = 's', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|WORKSPACES' } }) },
{ key = 'w', mods = 'CMD', action = wezterm.action({ CloseCurrentPane = { confirm = false } }) },
},
hyperlink_rules = {
{
regex = [[\b(https|http)://\S*\b]],
format = '$0',
},
{
regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
format = 'https://www.github.com/$1/$3',
}
}
-- hyperlink_rules = {
-- {
-- regex = [[\b(https|http)://\S*\b]],
-- format = '$0',
-- },
-- {
-- regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
-- format = 'https://www.github.com/$1/$3',
-- }
-- }
}