Almost rewrote my entire config
This commit is contained in:
parent
47d704ad01
commit
c5b355601e
51 changed files with 973 additions and 870 deletions
dotfiles/neovim/lua/my/plugins
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue