Merge branch 'dev'

This commit is contained in:
Nachuan Tang
2023-12-19 22:23:49 +08:00
5 changed files with 34 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
# SETUPLIB
a python library for writing cross-platform env setup script
View File
+26
View File
@@ -0,0 +1,26 @@
import sys
import os
class setup():
def __init__(self):
pass
def _has_path(self, path):
"""
Check if path exists(is file or directory)
"""
return os.path.exists(path)
def _is_file(self, path):
"""
Check if path is file
"""
return os.path.isfile(path)
def _is_dir(self, path):
"""
Check if path is directory
"""
return os.path.isdir(path)
+4 -2
View File
@@ -164,6 +164,8 @@ endfunc
function! options#init()
call options#preSet()
command! -nargs=0 Options call options#fzf_options()
nnoremap <silent> <leader>fo :Options<CR>
if !has('nvim')
command! -nargs=0 Options call options#fzf_options()
nnoremap <silent> <leader>fo :Options<CR>
endif
endfunction