Small remaps

This commit is contained in:
Juan Magalhães 2023-08-16 16:02:45 -03:00
parent 3cee875f97
commit 219d254ea5
4 changed files with 7 additions and 8 deletions

View File

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

View File

@ -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

View File

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