Small remaps

pull/1479/head
Juan Magalhães 2 years ago
parent 3cee875f97
commit 219d254ea5

@ -1,4 +1,4 @@
-- Neotree mappings
-- Project tree mappings
return function(buffer)
local api = require "nvim-tree.api"

@ -22,15 +22,15 @@ vim.api.nvim_create_autocmd('TextYankPost', {
pattern = '*',
})
-- Esc functionality
vim.keymap.set("n", "<Esc>", function()
-- Clear terminal notification below
vim.notify("")
local function nohClear()
-- Removes highlight search
vim.cmd.noh()
-- Clear terminal notification below
vim.notify("")
end
vim.cmd(':silent! Neotree cancel<cr>')
end, { silent = true })
vim.keymap.set("n", "<Esc>", nohClear, { silent = true })
vim.keymap.set("n", "<C-L>", nohClear, { silent = true })
--[[
NOTE To use Meta key as Option in mac inside iterm

@ -2,4 +2,3 @@ local import = require('core.utils').createImporter("core.keymaps")
import('general')
import('file-search')
import('diagnostics')

Loading…
Cancel
Save