2.5 KiB
📦 Installation
Polydev can be installed using any plugin manager of your choice—or even manually. Below are some examples for popular managers to get you started.
⚠️ Disclaimer: The
optsand configuration values shown below are simply examples. You can customize them based on your preferences or even omit them entirely if not needed. 💡 Heads up! Many language presets in Polydev require a file named<project_name>.polydevin your project root. If it's missing, Polydev will let you know (loudly 😅).
🛌 Lazy.nvim
This is the recommended way if you're using Lazy.nvim:
{
"DarthMooMancer/Polydev",
opts = {
lua = {
project_root = "~/Projects/Lua",
keybinds = {
["<leader>pr"] = "LuaRun",
},
},
terminal = {
border = true,
number = true,
},
},
}
✅ Keep the
optskey! It’s the modern way of setting up plugins in Lazy.
🧸 Mini.deps
For users of mini.nvim's dependency manager:
MiniDeps.add({ source = "DarthMooMancer/Polydev" })
require("Polydev").setup({
rust = {
project_root = "~/Projects/Rust",
keybinds = {
["<leader>pb"] = "RustBuild",
["<leader>pr"] = "RustRun",
},
},
terminal = {
border = true,
number = true,
},
})
📁 Packer.nvim
For fans of Packer.nvim:
use({
"DarthMooMancer/Polydev",
config = function()
require("Polydev").setup({
python = {
project_root = "~/Projects/Python",
keybinds = {
["<leader>pb"] = "PythonPip",
["<leader>pr"] = "PythonRun",
},
},
terminal = {
relativenumber = true,
},
})
end,
})
🔐 Vim-Plug (Classic)
Even if you're still using vim-plug, you’re covered:
Plug 'DarthMooMancer/Polydev'
lua << EOF
require("Polydev").setup({
c = {
project_root = "~/Projects/C",
keybinds = {
["<leader>pb"] = "CBuild",
["<leader>pr"] = "CRun",
},
},
terminal = {
number = true,
},
})
EOF
🛠 Manual Install
Clone the repo into your ~/.config/nvim/lua or any runtime path:
git clone https://github.com/DarthMooMancer/Polydev ~/.config/nvim/lua/Polydev
Then in your config:
require("Polydev").setup({
terminal = {
border = true,
},
})