aboutsummaryrefslogtreecommitdiff
path: root/configs/nvim/lua/crupest/filesystem-cmd.lua
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-10-02 00:02:38 +0800
committercrupest <crupest@outlook.com>2023-10-02 00:02:38 +0800
commit2acf3a9ee8656c679f1eb230070d4e2bc963717c (patch)
tree91bb5fff77d125919e5c3a7d5523837fc14005f4 /configs/nvim/lua/crupest/filesystem-cmd.lua
parentadd2f396a2b677a23963bd63c627a516e0c92835 (diff)
downloadcrupest-2acf3a9ee8656c679f1eb230070d4e2bc963717c.tar.gz
crupest-2acf3a9ee8656c679f1eb230070d4e2bc963717c.tar.bz2
crupest-2acf3a9ee8656c679f1eb230070d4e2bc963717c.zip
Update nvim configs.
Diffstat (limited to 'configs/nvim/lua/crupest/filesystem-cmd.lua')
-rw-r--r--configs/nvim/lua/crupest/filesystem-cmd.lua49
1 files changed, 0 insertions, 49 deletions
diff --git a/configs/nvim/lua/crupest/filesystem-cmd.lua b/configs/nvim/lua/crupest/filesystem-cmd.lua
deleted file mode 100644
index 3148cef..0000000
--- a/configs/nvim/lua/crupest/filesystem-cmd.lua
+++ /dev/null
@@ -1,49 +0,0 @@
-local function setup_filesystem_user_commands()
- vim.api.nvim_create_user_command("Mv", function(opts)
- require("crupest.nvim").mv_buf_file(vim.api.nvim_get_current_buf(), opts.fargs[1])
- end, {
- nargs = 1,
- complete = "file"
- })
-
- vim.api.nvim_create_user_command("MvFile", function(opts)
- if (#opts.fargs ~= 2) then
- vim.notify("MvFile accepts exactly two arguments, old file and new file.")
- end
- require("crupest.nvim").mv_file(opts.fargs[1], opts.fargs[2])
- end, {
- nargs = "+",
- complete = "file"
- })
-
- vim.api.nvim_create_user_command("MvDir", function(opts)
- if (#opts.fargs ~= 2) then
- vim.notify("MvDir accepts exactly two arguments, old dir and new dir.")
- end
- require("crupest.nvim").mv_dir(opts.fargs[1], opts.fargs[2])
- end, {
- nargs = "+",
- complete = "file"
- })
-
- vim.api.nvim_create_user_command("Rename", function(opts)
- require("crupest.nvim").rename_buf_file(vim.api.nvim_get_current_buf(), opts.fargs[1])
- end, {
- nargs = 1,
- complete = "file"
- })
-
- vim.api.nvim_create_user_command("RenameFile", function(opts)
- if (#opts.fargs ~= 2) then
- vim.notify("RenameFile accepts exactly two arguments, old file and new file.")
- end
- require("crupest.nvim").rename_file(opts.fargs[1], opts.fargs[2])
- end, {
- nargs = "+",
- complete = "file"
- })
-end
-
-return {
- setup_filesystem_user_commands = setup_filesystem_user_commands
-}