update mappings

master
spike 2 years ago
parent 9d379b301d
commit 92798bf716

@ -236,7 +236,7 @@ M.general = { --{{{
}, },
-- Notify cmd watcher (see /scripts/utils/fifo_watch.sh) -- Notify cmd watcher (see /scripts/utils/fifo_watch.sh)
["<leader><leader>,"] = { ["<leader><down>"] = {
function() function()
local fifo_patch = "/tmp/fifo_vimnotify" local fifo_patch = "/tmp/fifo_vimnotify"
os.execute("echo do >" .. fifo_patch) os.execute("echo do >" .. fifo_patch)
@ -755,7 +755,7 @@ M.general = { --{{{
-- TODO: find new mapping to close quickfix -- TODO: find new mapping to close quickfix
-- ["``"] = { "<cmd> call asyncrun#quickfix_toggle(8)<CR>", "toggle quickfix window" }, -- ["``"] = { "<cmd> call asyncrun#quickfix_toggle(8)<CR>", "toggle quickfix window" },
["<leader>m"] = { ":AsyncRun -program=" .. vim.o.makeprg .. "<CR>", "make using asyncrun" }, ["<leader>m"] = { ":AsyncRun -program=" .. vim.o.makeprg .. "<CR>", "make using asyncrun" },
["<leader><leader>r"] = { ":AsyncRun ", "custom asyncrun command" }, ["<leader>ar"] = { ":AsyncRun ", "custom asyncrun command" },
["<leader>pd"] = { "<cmd> AsyncRun lpr -P PDF_PRINT %<CR>", "PDF print file" }, ["<leader>pd"] = { "<cmd> AsyncRun lpr -P PDF_PRINT %<CR>", "PDF print file" },
["<leader>pp"] = { "<cmd> AsyncRun lpr %<CR>" }, ["<leader>pp"] = { "<cmd> AsyncRun lpr %<CR>" },
}, },

@ -32,10 +32,10 @@ return {
incremental_selection = { incremental_selection = {
enable = true, enable = true,
keymaps = { keymaps = {
init_selection = "<CR>", init_selection = "<Space>",
node_incremental = "<Tab>", node_incremental = "<Space>",
node_decremental = "<BS>",
scope_incremental = "<CR>", scope_incremental = "<CR>",
node_decremental = "<S-Tab>",
} }
}, },

@ -245,12 +245,19 @@ return {
end end
},-- }}} },-- }}}
-- tmux helpers
["christoomey/vim-tmux-navigator"] = { ["christoomey/vim-tmux-navigator"] = {
cond = function() cond = function()
return vim.env.TMUX ~= nil return vim.env.TMUX ~= nil
end end
}, },
--[[ ["preservim/vimux"] = {
cond = function()
return vim.env.TMUX ~= nil
end
}, ]]
-- Job management (use nvim startjob ) -- Job management (use nvim startjob )
-- Run async commands (make & errors) -- Run async commands (make & errors)
@ -310,9 +317,8 @@ return {
vim.g.hardtime_showmsg = 1 vim.g.hardtime_showmsg = 1
vim.g.list_of_normal_keys = {"h","j","k","l"} vim.g.list_of_normal_keys = {"h","j","k","l"}
vim.g.list_of_visual_keys = {"h","j","k","l"} vim.g.list_of_visual_keys = {"h","j","k","l"}
vim.g.hardtime_ignore_quickfix = 1
vim.g.hardtime_ignore_buffer_patterns = { vim.g.hardtime_ignore_buffer_patterns = {
"qf*",
"help",
"NERD.*", "NERD.*",
"netrw", "netrw",
"TelescopePrompt", "TelescopePrompt",
@ -321,9 +327,6 @@ return {
vim.g.hardtime_maxcount = 2 vim.g.hardtime_maxcount = 2
end, end,
config = function()
vim.cmd("HardTimeOn")
end
}, },
-- ["chentoast/marks.nvim"] = { -- ["chentoast/marks.nvim"] = {

Loading…
Cancel
Save