diff --git a/cli/vim/neovim/lua/keybindings.lua b/cli/vim/neovim/lua/keybindings.lua index 6f6b76d..29f9437 100644 --- a/cli/vim/neovim/lua/keybindings.lua +++ b/cli/vim/neovim/lua/keybindings.lua @@ -13,6 +13,9 @@ keymap(NORMAL, 'ss', ':source ~/.config/nvim/init.lua', { noremap = keymap(NORMAL, 'sc', ':source %', { noremap = true }) keymap(NORMAL, 'w', ':w', { noremap = true }) keymap(VISUAL, 'y', '"+y', { noremap = true }) +keymap(NORMAL, 'yp', ':let @+=expand("%:p")', { noremap = true }) +keymap(NORMAL, 'yn', ':let @+=expand("%:t")', { noremap = true }) +keymap(NORMAL, 'yl', ':let @+=expand("%") . ":" . line(".")', { noremap = true }) keymap(VISUAL, 'p', '"0p', { noremap = true }) keymap(NORMAL, 'q', ':bd', { noremap = true }) keymap(NORMAL, 'qq', ':qall', { noremap = true }) @@ -30,7 +33,8 @@ keymap(NORMAL, 't', ':NvimTreeToggle', { noremap = true }) keymap(NORMAL, 'tf', ':NvimTreeFindFile', { noremap = true }) keymap(NORMAL, 'ts', ':Telescope live_grep', { noremap = true }) keymap(NORMAL, 'tt', ':Telescope file_browser path=%:p:h', { noremap = true }) -keymap(NORMAL, 'tb', ':Telescope buffers', { noremap = true }) +keymap(NORMAL, 'tb', ':Telescope buffers', { noremap = true }) +keymap(NORMAL, 'tm', ':Telescope media_files', { noremap = true }) keymap(NORMAL, 'gc', ':Telescope git_branches', { noremap = true }) keymap(NORMAL, 'gr', ':Telescope lsp_references', { noremap = true }) keymap(NORMAL, 'gds', ':Telescope lsp_document_symbols', { noremap = true }) @@ -42,6 +46,7 @@ keymap(NORMAL, 'gl', ':Git log', { noremap = true }) keymap(NORMAL, 'gpr', ':!gpr', { noremap = true }) keymap(NORMAL, 'cn', ':cnext', { noremap = true }) keymap(NORMAL, 'cp', ':cprev', { noremap = true }) +keymap(NORMAL, 'bo', ':%bd | e#', { noremap = true }) -- command mode @@ -52,3 +57,11 @@ keymap(COMMAND, '', '', { noremap = true }) keymap(COMMAND, '', '', { noremap = true }) keymap(COMMAND, '', '', { noremap = true }) keymap(COMMAND, '', '', { noremap = true }) + +-- keymap(INSERT, '', '', { noremap = true }) +-- keymap(INSERT, '', '', { noremap = true }) +-- keymap(INSERT, '', '', { noremap = true }) +-- keymap(INSERT, '', '', { noremap = true }) +-- keymap(INSERT, '', '', { noremap = true }) +-- keymap(INSERT, '', '', { noremap = true }) +-- keymap(INSERT, '', '', { noremap = true }) diff --git a/cli/vim/neovim/lua/plugins.lua b/cli/vim/neovim/lua/plugins.lua index 093b87d..f98e3e2 100644 --- a/cli/vim/neovim/lua/plugins.lua +++ b/cli/vim/neovim/lua/plugins.lua @@ -20,6 +20,7 @@ require("packer").startup(function(use) requires = { {"nvim-lua/plenary.nvim"} }, } -- use "nvim-telescope/telescope-file-browser.nvim" + use "nvim-telescope/telescope-media-files.nvim" -- bufferline use { diff --git a/cli/vim/neovim/lua/plugins/telescope.lua b/cli/vim/neovim/lua/plugins/telescope.lua index d4433bf..039f164 100644 --- a/cli/vim/neovim/lua/plugins/telescope.lua +++ b/cli/vim/neovim/lua/plugins/telescope.lua @@ -4,8 +4,10 @@ if not telescope_ok then end -- telescope.load_extension "file_browser" +telescope.load_extension('media_files') telescope.setup({ extensions = { -- file_browser = {} + media_files = {} } })