updates
This commit is contained in:
+11
-1
@@ -1,3 +1,14 @@
|
|||||||
|
[alias]
|
||||||
|
save = "!f() { git add -u && git commit --no-verify -m "\"SAVEPOINT - $@\""; }; f"
|
||||||
|
undo = reset HEAD~1 --mixed
|
||||||
|
checkpoint = "!f() { git save ${1-CHECKPOINT}; git tag "\"checkpoint/${1-`date +%Y%m%d_%H%M%S`}\""; git undo; }; f"
|
||||||
|
checkpoints = tag -l "checkpoint/*"
|
||||||
|
delcheckpoint = "!f() { git tag -d checkpoint/$1; }; f"
|
||||||
|
loadcheckpoint = "!f() { git reset --hard checkpoint/$1 && git undo; }; f"
|
||||||
|
cp = checkpoint
|
||||||
|
cpls = loadcheckpoint
|
||||||
|
cpd = delcheckpoint
|
||||||
|
cpld = loadcheckpoint required = true
|
||||||
[core]
|
[core]
|
||||||
filemode = false
|
filemode = false
|
||||||
pager = diff-so-fancy | less --tabs=4 -RFX
|
pager = diff-so-fancy | less --tabs=4 -RFX
|
||||||
@@ -10,4 +21,3 @@
|
|||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
|
||||||
|
|||||||
+6
-5
@@ -693,19 +693,20 @@ require("packer").startup {
|
|||||||
bmap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<cr>", opts)
|
bmap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<cr>", opts)
|
||||||
bmap(bufnr, "n", "K", "<cmd>lua vim.lsp.buf.hover()<cr>", opts)
|
bmap(bufnr, "n", "K", "<cmd>lua vim.lsp.buf.hover()<cr>", opts)
|
||||||
bmap(bufnr, "n", "<M-r>", "<cmd>lua vim.lsp.buf.rename()<cr>", opts)
|
bmap(bufnr, "n", "<M-r>", "<cmd>lua vim.lsp.buf.rename()<cr>", opts)
|
||||||
bmap(bufnr, "n", "<leader>f", "<cmd>lua vim.lsp.buf.formatting()<cr>", opts)
|
bmap(bufnr, "n", "<leader>f", "<cmd>lua vim.lsp.buf.formatting()<cr>",
|
||||||
|
opts)
|
||||||
if client.server_capabilities.documentFormattingProvider or
|
if client.server_capabilities.documentFormattingProvider or
|
||||||
client.server_capabilities.documentRangeFormattingProvider then
|
client.server_capabilities.documentRangeFormattingProvider then
|
||||||
vim.api.nvim_command [[augroup Format]]
|
vim.api.nvim_command [[augroup Format]]
|
||||||
vim.api.nvim_command [[autocmd! * <buffer>]]
|
vim.api.nvim_command [[autocmd! * <buffer>]]
|
||||||
vim.api
|
vim.api
|
||||||
.nvim_command [[autocmd BufWritePost *.py lua vim.lsp.buf.formatting_seq_sync()]]
|
.nvim_command [[autocmd BufWritePost *.py lua vim.lsp.buf.format()]]
|
||||||
vim.api
|
vim.api
|
||||||
.nvim_command [[autocmd BufWritePost *.lua lua vim.lsp.buf.formatting_seq_sync()]]
|
.nvim_command [[autocmd BufWritePost *.lua lua vim.lsp.buf.format()]]
|
||||||
vim.api
|
vim.api
|
||||||
.nvim_command [[autocmd BufWritePost *.md lua vim.lsp.buf.formatting_seq_sync()]]
|
.nvim_command [[autocmd BufWritePost *.md lua vim.lsp.buf.format()]]
|
||||||
vim.api
|
vim.api
|
||||||
.nvim_command [[autocmd BufWritePost *.yaml lua vim.lsp.buf.formatting_seq_sync()]]
|
.nvim_command [[autocmd BufWritePost *.yaml lua vim.lsp.buf.format()]]
|
||||||
vim.api.nvim_command [[augroup END]]
|
vim.api.nvim_command [[augroup END]]
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user