Small remaps
This commit is contained in:
parent
3cee875f97
commit
219d254ea5
|
@ -1,4 +1,4 @@
|
||||||
-- Neotree mappings
|
-- Project tree mappings
|
||||||
|
|
||||||
return function(buffer)
|
return function(buffer)
|
||||||
local api = require "nvim-tree.api"
|
local api = require "nvim-tree.api"
|
||||||
|
|
|
@ -22,15 +22,15 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
pattern = '*',
|
pattern = '*',
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Esc functionality
|
local function nohClear()
|
||||||
vim.keymap.set("n", "<Esc>", function()
|
|
||||||
-- Clear terminal notification below
|
|
||||||
vim.notify("")
|
|
||||||
-- Removes highlight search
|
-- Removes highlight search
|
||||||
vim.cmd.noh()
|
vim.cmd.noh()
|
||||||
|
-- Clear terminal notification below
|
||||||
|
vim.notify("")
|
||||||
|
end
|
||||||
|
|
||||||
vim.cmd(':silent! Neotree cancel<cr>')
|
vim.keymap.set("n", "<Esc>", nohClear, { silent = true })
|
||||||
end, { silent = true })
|
vim.keymap.set("n", "<C-L>", nohClear, { silent = true })
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
NOTE To use Meta key as Option in mac inside iterm
|
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('general')
|
||||||
import('file-search')
|
import('file-search')
|
||||||
import('diagnostics')
|
|
||||||
|
|
Loading…
Reference in New Issue