Skip to content

Commit

Permalink
mark snipterminate for deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelb committed Sep 6, 2022
1 parent 7c50bc8 commit 8db6fc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions doc/sniprun.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ ALL COMMANDS *sniprun-commands*
:SnipReplMemoryClean If you sent incorrect code to a interpreter with enabled REPL mode, you can clear the
REPL 'memory' with that. It will forget all variables you have defined previously etc..

:SnipTerminate Kill Sniprun and child processes (equivalent to SnipReset but does not clean the cache)

:SnipInfo Get Sniprun version info and info about the available interpreters

:SnipClose Clear virtual text and close splits and floating windows created by sniprun
Expand Down
4 changes: 2 additions & 2 deletions lua/sniprun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ function M.configure_keymaps()
vim.api.nvim_set_keymap("v", "<Plug>SnipRun", ":lua require'sniprun'.run('v')<CR>", {silent=true})
vim.api.nvim_set_keymap("n", "<Plug>SnipRun", ":lua require'sniprun'.run()<CR>",{silent=true})
vim.api.nvim_set_keymap("n", "<Plug>SnipRunOperator", ":set opfunc=SnipRunOperator<CR>g@",{silent=true})
vim.api.nvim_set_keymap("n", "<Plug>SnipRTerminate", ":lua require'sniprun'.terminate()<CR>",{silent=true})
vim.api.nvim_set_keymap("n", "<Plug>SnipRTerminate", ":lua require'sniprun'.terminate() ; print('warning: SnipTerminate will be deprecated in the next release. Use SnipReset instead') <CR>",{silent=true})
vim.api.nvim_set_keymap("n", "<Plug>SnipReset", ":lua require'sniprun'.reset()<CR>",{silent=true})
vim.api.nvim_set_keymap("n", "<Plug>SnipInfo", ":lua require'sniprun'.info()<CR>",{})
vim.api.nvim_set_keymap("n", "<Plug>SnipReplMemoryClean", ":lua require'sniprun'.clear_repl()<CR>",{silent=true})
vim.api.nvim_set_keymap("n", "<Plug>SnipClose", ":lua require'sniprun.display'.close_all()<CR>",{silent=true})

vim.cmd("command! SnipTerminate :lua require'sniprun'.terminate()")
vim.cmd("command! SnipTerminate :lua require'sniprun'.terminate() ; print('warning: SnipTerminate will be deprecated in the next release. Use SnipReset instead') ")
vim.cmd("command! SnipReset :lua require'sniprun'.reset()")
vim.cmd("command! SnipReplMemoryClean :lua require'sniprun'.clear_repl()")
vim.cmd("function! SnipRunOperator(...) \n lua require'sniprun'.run('n') \n endfunction")
Expand Down

0 comments on commit 8db6fc5

Please sign in to comment.