Better Esc mapping

pull/398/head
juanmagalhaes 2 years ago
parent 7f49d1d675
commit 6a028150f0

@ -38,8 +38,13 @@ vim.api.nvim_create_autocmd('TextYankPost', {
pattern = '*',
})
-- Remove highlight search
vim.keymap.set('n', '<leader>l', ':nohls<cr>', { silent = true })
-- Esc functionality
vim.keymap.set("n", "<Esc>", function()
-- Clear terminal notification below
vim.notify("")
-- Removes highlight search
vim.cmd.noh()
end, { silent = true })
-- Split resize
vim.keymap.set('n', '<C-j>', ':res +1<cr>', { desc = 'Resize split' })

@ -24,7 +24,7 @@ vim.o.breakindent = true
vim.o.undofile = true
-- Case-insensitive searching UNLESS \C or capital in search
vim.o.ignorecase = true
-- vim.o.ignorecase = true
vim.o.smartcase = true
-- Keep signcolumn on by default
@ -40,4 +40,3 @@ vim.o.completeopt = 'menuone,noselect'
-- NOTE: You should make sure your terminal supports this
vim.o.termguicolors = true

@ -57,14 +57,26 @@ local plugins = {
opts = {}
},
--[[
{
-- Theme inspired by Atom
--
'navarasu/onedark.nvim',
priority = 1000,
config = function()
vim.cmd.colorscheme 'onedark'
end,
},
--]]
{
-- Theme inspired by Atom
'Mofiqul/dracula.nvim',
priority = 1000,
config = function()
vim.cmd.colorscheme 'dracula'
end,
},
{
-- Set lualine as statusline
@ -73,7 +85,7 @@ local plugins = {
opts = {
options = {
icons_enabled = true,
theme = 'onedark',
theme = 'dracula',
component_separators = '|',
section_separators = { left = '', right = '' },
},
@ -135,8 +147,8 @@ local plugins = {
require('neo-tree').setup {
filesystem = {
filtered_items = {
visible = false,
hide_dotfiles = false,
visible = true,
hide_hidden = false
}
},
}

Loading…
Cancel
Save