3 files changed,
27 insertions(+),
1 deletions(-)
jump to
| M | ftplugin/lua.lua |
| M | lua/plugin.lua |
| A | lua/plugin/lua-dev.lua |
M
ftplugin/lua.lua
@@ -2,3 +2,15 @@ -- spacing
vim.opt_local.tabstop = 2 vim.opt_local.shiftwidth = 2 vim.opt_local.softtabstop = 2 + +-- mappings +require("which-key").register({ + [";"] = { + name = "Coding", + t = { "<Plug>PlenaryTestFile", "Run tests in current file" }, + }, +}, { + prefix = "<leader>", + mode = "n", + { noremap = true, silent = true }, +})
M
lua/plugin.lua
@@ -15,7 +15,7 @@ use { "ahmedkhalf/project.nvim", config = get_config "plugin.project" }
-- languages use { "~/code/gopher.nvim", ft = "go" } - use { "folke/lua-dev.nvim", config = get_config "lua-dev", ft = "lua" } + use { "folke/lua-dev.nvim", ft = "lua", config = get_config "plugin.lua-dev" } use { "zah/nim.vim", ft = "nim" } -- git
A
lua/plugin/lua-dev.lua
@@ -0,0 +1,14 @@
+local M = {} + +function M.setup() + require("lua-dev").setup { + library = { + vimruntime = true, + types = true, + plugins = true, + }, + runtime_path = false, + } +end + +return M