add self funcs

This commit is contained in:
Lee Tang
2022-05-16 10:52:55 +08:00
parent 9376431a92
commit b69b7c23c6
3 changed files with 7 additions and 0 deletions

1
.zshrc
View File

@@ -15,6 +15,7 @@ antigen bundle git
antigen bundle kubectl
antigen bundle vi-mode
antigen bundle autojump
antigen bundle pip
antigen bundle pipenv
antigen bundle Aloxaf/fzf-tab
antigen bundle wbingli/zsh-wakatime

View File

@@ -159,6 +159,7 @@ vim.g.copilot_no_maps = 1
vim.g.copilot_assume_mapped = 1
require('plugins')
require('funcs')
-- Neoformat
if not fn.executable('luafmt') then

5
nvim/lua/funcs.lua Normal file
View File

@@ -0,0 +1,5 @@
local fn = vim.fn
function GetPath()
fn.setreg('+', fn.getreg('%'))
end