init.lua/ftplugin/lua.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
-- 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 },
})
|