From 9acde6b8ef3180b86d3acf879426df554e7d4497 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sun, 15 Sep 2024 07:30:50 -0700 Subject: [PATCH] :wrench: Remapped colormypencils --- .config/nvim/lua/neovim/remap.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/neovim/remap.lua b/.config/nvim/lua/neovim/remap.lua index b9ec9362..3099319e 100644 --- a/.config/nvim/lua/neovim/remap.lua +++ b/.config/nvim/lua/neovim/remap.lua @@ -54,7 +54,7 @@ vim.keymap.set("n", "nv", ":vnew", { silent = true }) vim.keymap.set("n", "", ":PackerSync", {}) -- control + t enable transparency -vim.keymap.set("n", "", ":lua ColorMyPencils()", {}) +vim.keymap.set("n", "t", ":lua ColorMyPencils()", {}) -- open :Mason using msn vim.keymap.set("n", "msn", ":Mason", { silent = true }) @@ -102,11 +102,14 @@ vim.cmd([[nnoremap b :.,+=v:count1norm A\]]) vim.keymap.set("n", "u", ":UndotreeToggle") -- runs npm tests without having to leave vim -vim.keymap.set("n", "t", ":w|!npm test") +-- vim.keymap.set("n", "t", ":w|!npm test") -- opens go to definition in new tab if not in current file vim.keymap.set("n", "gd", vim.lsp.buf.definition, bufopts) +-- toggles floating error messages +vim.keymap.set("n", "e", "vim.diagnostic.open_float()", opts) + vim.keymap.set("n", "gD", function() local org_path = vim.api.nvim_buf_get_name(0)