Info Fugitive fzflua(fix)

navigator
spike 2 years ago
parent 8715b17db3
commit 6c4e49cac4

@ -379,21 +379,22 @@ M.fzf_lua = {--{{{
n = {
-- find
["<C-p>"] = { "<cmd> FzfLua files <CR>", "find files" },
["<C-p>"] = { "<cmd> FzfLua files <CR>", "FzfLua find files" },
["<leader>fl"] = { "<cmd> FzfLua lines <CR>", "FzfLua grep in lines" },
-- grep
["<leader>fw"] = { "<cmd> FzfLua grep_cword <CR>", "grep cword" },
["<leader>f."] = { "<cmd> FzfLua live_grep_native <CR>", "grep live native" },
["<leader>f*"] = { "<cmd> FzfLua live_grep_glob <CR>", "grep with glob (SPACE-- globs)"},
["<leader>fw"] = { "<cmd> FzfLua grep_cword <CR>", "FzfLua grep cword" },
["<leader>f."] = { "<cmd> FzfLua live_grep_native <CR>", "FzfLua grep live native" },
["<leader>f*"] = { "<cmd> FzfLua live_grep_glob <CR>", "FzfLua grep with glob (SPACE-- globs)"},
-- continue
["<leader>ff"] = { "<cmd> FzfLua resume <CR>", "resume last search"},
["<leader>ff"] = { "<cmd> FzfLua resume <CR>", "FzfLua resume last search"},
["<leader>;"] = { "<cmd> FzfLua buffers <CR>", "find buffers" },
["<leader>;"] = { "<cmd> FzfLua buffers <CR>", "FzfLua find buffers" },
["<leader>fb"] = { "<cmd> FzfLua builtins <CR>", "FzfLua builtins" },
["<leader>fh"] = { "<cmd> FzfLua help_tags <CR>", "find help pages" },
["<leader>fo"] = { "<cmd> FzfLua oldfiles <CR>", "find oldfiles" },
["<leader>tk"] = { "<cmd> lua require'custom.plugins.fzflua'.keymaps() <CR>", "show keymaps" },
["<leader>fh"] = { "<cmd> FzfLua help_tags <CR>", "FzfLua find help pages" },
["<leader>fo"] = { "<cmd> FzfLua oldfiles <CR>", "FzfLua find oldfiles" },
["<leader>tk"] = { "<cmd> lua require'custom.plugins.fzflua'.keymaps() <CR>", "FzfLua show keymaps" },
}
}--}}}

@ -19,7 +19,7 @@ M.keymaps = function(opts)
local add_keymap = function(keymap)
-- hijack fields
local keymap_desc = keymap.desc == nil and keymap.rhs or keymap.desc
keymap.str = string.format("%s │ %-40ls │ %s",
keymap.str = string.format("%s │ %-40s │ %s",
utils.ansi_codes[modes[keymap.mode] or "blue"](keymap.mode),
keymap.lhs:gsub("%s", "<Space>"),
keymap_desc)

@ -0,0 +1,24 @@
local M = {}
M.set_mappings = function ()
vim.cmd [[
nnoremap <leader>I :tab Info<CR>
augroup INFO
au!
au FileType info nnoremap i <NOP>
au FileType info nmap <buffer> <Up> <Plug>(InfoUp)
au FileType info nmap <buffer> iu <Plug>(InfoUp)
au FileType info nmap <buffer> <Down> <Plug>(InfoMenu)
au FileType info nmap <buffer> im <Plug>(InfoMenu)
au FileType info nmap <buffer> <C-F> <Plug>(InfoFollow)
au FileType info nmap <buffer> if <Plug>(InfoFollow)
au FileType info nmap <buffer> <Right> <Plug>(InfoNext)
au FileType info nmap <buffer> in <Plug>(InfoNext)
au FileType info nmap <buffer> <Left> <Plug>(InfoPrev)
au FileType info nmap <buffer> ip <Plug>(InfoPrev)
au FileType info nmap <buffer> ig <Plug>(InfoGoto)
augroup END
]]
end
return M

@ -1,9 +1,9 @@
return {
["nvim-treesitter/nvim-treesitter-textobjects"] = {
after = "nvim-treesitter",
-- config = function()
-- require("custom.plugins.configs.treesitter-to")
-- end
config = function()
require("custom.plugins.configs.treesitter-to")
end
},
["mfussenegger/nvim-dap"] = {
module = "dap"
@ -38,6 +38,9 @@ return {
vim.g.asyncrun_open = 8
end
},
["tpope/vim-fugitive"] = {
cmd = "G*"
},
-- restore view
["vim-scripts/restore_view.vim"] = {},

Loading…
Cancel
Save