Skip to content

Commit

Permalink
feat(nvim): mods user commands
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jan 29, 2024
1 parent 038bfb3 commit 706049a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/neovim/config/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require("user.options")
require("user.keymaps")
require("user.autocommands")
require("user.commands")

--
-- UI
Expand Down
5 changes: 5 additions & 0 deletions modules/neovim/config/lua/user/commands.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vim.cmd([[
command! -range -nargs=0 ModsExplain :'<,'>w !mods explain this, be very succint
command! -range -nargs=* ModsRefactor :'<,'>!mods refactor this to improve its readability
command! -range -nargs=+ Mods :'<,'>w !mods <q-args>
]])

0 comments on commit 706049a

Please sign in to comment.