-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I want to be able to start Luapad always as Neovim gets more and more a Lua interpreter and also a text editor ;)
- Loading branch information
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
local M = { | ||
"rafcamlet/nvim-luapad", | ||
ft = "lua", | ||
local user_config = vim.g.config.plugins.luapad or {} | ||
|
||
local default_config = { | ||
-- stylua: ignore start | ||
keys = { | ||
{ "<leader>mL", function() require("luapad").init() end, desc = "Luapad", }, | ||
}, | ||
-- stylua: ignore end | ||
opts = {}, | ||
} | ||
|
||
return M | ||
local config = vim.tbl_deep_extend("force", default_config, user_config) | ||
|
||
return { | ||
"rafcamlet/nvim-luapad", | ||
keys = config.keys, | ||
opts = config.opts, | ||
} |