all repos

init.lua @ fae6723

my nvim config
2 files changed, 7 insertions(+), 7 deletions(-)
make all file dependend keymaps local
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2024-05-14 15:41:01 +0300
Parent: 8a55530
M after/ftplugin/go.lua

@@ -7,11 +7,11 @@ vim.opt_local.shiftwidth = 4

vim.opt_local.softtabstop = 4 -- mapping -map("n", "<leader>;f", "<cmd>GoIfErr<cr>") -map("n", "<leader>;c", "<cmd>GoCmt<cr>") +map("n", "<leader>;f", "<cmd>GoIfErr<cr>", true) +map("n", "<leader>;c", "<cmd>GoCmt<cr>", true) -map("n", "<leader>;t", "<cmd>GoTestAdd<cr>") -map("n", "<leader>;a", "<cmd>GoTestsAll<cr>") +map("n", "<leader>;t", "<cmd>GoTestAdd<cr>", true) +map("n", "<leader>;a", "<cmd>GoTestsAll<cr>", true) map("n", "<leader>;e", "<cmd>GoTestsExp<cr>") -map("n", "<leader>;s", require("scratch.gotest_switcher").switch) +map("n", "<leader>;s", require("scratch.gotest_switcher").switch, true)
M after/ftplugin/lua.lua

@@ -5,6 +5,6 @@ vim.opt_local.shiftwidth = 2

vim.opt_local.softtabstop = 2 -- some maps -map("n", "<leader>;s", function() +map("n", "<leader>x", function() vim.cmd.source "%" -end) +end, true)