|
|
|
@ -29,6 +29,12 @@ M.misc = function()
|
|
|
|
|
|
|
|
|
|
-- use ESC to turn off search highlighting
|
|
|
|
|
map("n", "<Esc>", ":noh <CR>")
|
|
|
|
|
|
|
|
|
|
-- center cursor when moving (goto_definition)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- yank from current cursor to end of line
|
|
|
|
|
map("n", "Y", "yg$")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local function optional_mappings()
|
|
|
|
@ -150,7 +156,7 @@ M.telescope = function()
|
|
|
|
|
local m = plugin_maps.telescope
|
|
|
|
|
|
|
|
|
|
map("n", m.buffers, ":Telescope buffers <CR>")
|
|
|
|
|
map("n", m.find_files, ":Telescope find_files <CR>")
|
|
|
|
|
map("n", m.find_files, ":Telescope find_files no_ignore=true <CR>")
|
|
|
|
|
map("n", m.find_hiddenfiles, ":Telescope find_files hidden=true <CR>")
|
|
|
|
|
map("n", m.git_commits, ":Telescope git_commits <CR>")
|
|
|
|
|
map("n", m.git_status, ":Telescope git_status <CR>")
|
|
|
|
|