1
Fork 0

Almost rewrote my entire config

This commit is contained in:
Matei Adriel 2022-12-27 20:45:43 +01:00
commit c5b355601e
51 changed files with 973 additions and 870 deletions
dotfiles/neovim/lua/my/plugins

View file

@ -1,9 +1,22 @@
local K = require("my.keymaps")
local M = {}
local env = require("my.helpers.env")
function M.setup()
local M = {
"preservim/vimux", -- interact with tmux from within vim
cmd = { "VimuxPromptCommand", "VimuxRunCommand", "VimuxRunLastCommand" },
-- TODO: only enable when actually inside tmux
cond = env.vscode.not_active()
and env.neovide.not_active()
and env.firenvim.not_active(),
}
function M.init()
--{{{ Register keybinds
K.nmap("<leader>vp", ":VimuxPromptCommand<CR>", "[V]imux: [p]rompt for command")
K.nmap(
"<leader>vp",
":VimuxPromptCommand<CR>",
"[V]imux: [p]rompt for command"
)
K.nmap("<leader>vc", ':VimuxRunCommand "clear"<CR>', "[V]imux: [c]lear pane")
K.nmap(
"<leader>vl",
@ -17,7 +30,7 @@ function M.setup()
if status then
wk.register({
["<leader>v"] = {
name = "vimux",
name = "[V]imux",
},
})
end