all repos

init.lua @ d037129

my nvim config
3 files changed, 27 insertions(+), 1 deletions(-)
Updated lua-dev
Author: flof-ik ss2316544@gmail.com
Committed at: 2022-02-21 19:51:20 +0200
Parent: 027499c
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