https://github.com/wrldspawn/nvim-gmod-luadev
Commands for LuaDev's SocketDev; send code from your editor to the game
https://github.com/wrldspawn/nvim-gmod-luadev
garrys-mod garrysmod gmod neovim nvim
Last synced: about 2 months ago
JSON representation
Commands for LuaDev's SocketDev; send code from your editor to the game
- Host: GitHub
- URL: https://github.com/wrldspawn/nvim-gmod-luadev
- Owner: wrldspawn
- License: mit
- Created: 2024-11-01T18:21:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-01T23:52:48.000Z (6 months ago)
- Last Synced: 2025-01-13T16:25:32.901Z (3 months ago)
- Topics: garrys-mod, garrysmod, gmod, neovim, nvim
- Language: Lua
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nvim-gmod-luadev
Commands for [LuaDev](https://github.com/Metastruct/luadev)'s SocketDev; send code from your editor to the game## Installation
Add `wrldspawn/nvim-gmod-luadev` to your favorite plugin manager and call `require("nvim-gmod-luadev").setup()`.
A table can be passed to setup, the only option currently is `port` (default `27099`)### lazy.nvim
```lua
{
"wrldspawn/nvim-gmod-luadev",
-- optional, shouldn't need to change the port
opts = {
port = 27099, -- default
},
-- lazyload on filetype
ft = "lua",
-- or on command
cmd = {"LuadevSelf", "LuadevSv", "LuadevCl", "LuadevSh", "LuadevClient"},
-- setup keybinds (optional)
-- NOTE: if you're using a terminal and want to use Ctrl-1 through 5 you will need to bind them to \e[49;5u through
-- \e[53;5u respectively in your terminal's config, if possible
keys = {
{"", "LuadevSelf", desc = "LuaDev: Run on self", mode = "n"},
{"", "LuadevSv", desc = "LuaDev: Run on server", mode = "n"},
{"", "LuadevCl", desc = "LuaDev: Run on clients", mode = "n"},
{"", "LuadevSh", desc = "LuaDev: Run on shared", mode = "n"},
{"", "LuadevClient", desc = "LuaDev: Run on specific player", mode = "n"},
},
}
```