fix: allow to easily exit terminal mode

This commit is contained in:
2022-11-18 00:09:51 +01:00
parent 13407572ac
commit a2211292a7
2 changed files with 13 additions and 26 deletions

View File

@@ -7,10 +7,13 @@ local saga = require("lspsaga")
saga.init_lsp_saga()
local options = { noremap = true, silent = true }
local remap = { noremap = false }
local remap = { noremap = true }
g.mapleader = " "
-- Allows to easily exit terminal mode
map('t', '<Esc>', [[<C-\><C-n>]], remap)
map("n", "<C-o>", ":Telescope find_files<CR>", options)
map("n", "<C-f>", ":lua require'telescope.builtin'.live_grep{ cwd = vim.fn.getcwd() }<CR>", options)
-- map("n", "<C-p>", ":Telescope command_center<CR>", options)