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 defaultBranch = main
[user] [user]
email = i@d0zingcat.dev email = i@d0zingcat.dev
name = d0zingcat name = Lee Tang
signingkey = 39E301C2 signingkey = 39E301C2
[url "https://"] [url "https://"]
insteadOf = git:// insteadOf = git://
@@ -22,7 +22,8 @@
cmd = difft "$LOCAL" "$REMOTE" cmd = difft "$LOCAL" "$REMOTE"
[alias] [alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit 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 p = push
st = status st = status
co = checkout 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('wakatime/vim-wakatime')
--use('psf/black') --use('psf/black')
use({ use({
'preservim/nerdcommenter', 'numToStr/Comment.nvim',
config = function() config = function()
require('config.nvim_vimgo') require('Comment').setup()
end, end,
}) })
use({ use({
'windwp/nvim-autopairs', 'windwp/nvim-autopairs',
config = function() config = function()

View File

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