You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but feel free to use whatever plugin manager that you like!
" for terminal integration
Plug 'ThePrimeagen/harpoon'"Plugin for python integration
Plug 'Josiah-tan/python-nvim'
Setup
This setup function is important for initializing the plugin, any default options can be set here
-- no defaults by defaultrequire("makefile_nvim").setup()
-- use a custom virtual environmentrequire("python_nvim").setup({
source="/path/to/env/here/activate"
})
Builtins
This plugin has several builtin features that you can utilize
" executes current file in a virtual environment if available, otherwise install into the global environmentnnoremap<leader>sv <cmd>lua require("python_nvim.builtin").sourceVenv(1)<CR>" pip installs packages into your virtual environment if available, otherwise install into the global environmentnnoremap<leader>si <cmd>lua require("python_nvim.builtin").sourceInstallModules(1)<CR>" initializes terminal with Python environment (otherwise it will be lazily initialized)nnoremap<leader>jq <cmd>lua require("python_nvim.builtin").PythonInit(4)<cr>" sends visually selected text to the Python terminalvnoremap<leader>x <cmd>lua require("python_nvim.builtin").runPythonSelection(4)<cr><esc>" sends sends text between two line separators "##" above and below the region of text to be executed in the Python terminalnnoremap<leader>x <cmd>lua require("python_nvim.builtin").runPythonBlock(4)<cr>" executes the current line without indentation in the python terminalnnoremap<leader>xl <cmd>lua require("python_nvim.builtin").runPythonLineNoIndent(4)<cr>