Better Esc mapping
This commit is contained in:
parent
7f49d1d675
commit
6a028150f0
9
init.lua
9
init.lua
|
@ -38,8 +38,13 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
pattern = '*',
|
pattern = '*',
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Remove highlight search
|
-- Esc functionality
|
||||||
vim.keymap.set('n', '<leader>l', ':nohls<cr>', { silent = true })
|
vim.keymap.set("n", "<Esc>", function()
|
||||||
|
-- Clear terminal notification below
|
||||||
|
vim.notify("")
|
||||||
|
-- Removes highlight search
|
||||||
|
vim.cmd.noh()
|
||||||
|
end, { silent = true })
|
||||||
|
|
||||||
-- Split resize
|
-- Split resize
|
||||||
vim.keymap.set('n', '<C-j>', ':res +1<cr>', { desc = 'Resize split' })
|
vim.keymap.set('n', '<C-j>', ':res +1<cr>', { desc = 'Resize split' })
|
||||||
|
|
|
@ -24,7 +24,7 @@ vim.o.breakindent = true
|
||||||
vim.o.undofile = true
|
vim.o.undofile = true
|
||||||
|
|
||||||
-- Case-insensitive searching UNLESS \C or capital in search
|
-- Case-insensitive searching UNLESS \C or capital in search
|
||||||
vim.o.ignorecase = true
|
-- vim.o.ignorecase = true
|
||||||
vim.o.smartcase = true
|
vim.o.smartcase = true
|
||||||
|
|
||||||
-- Keep signcolumn on by default
|
-- Keep signcolumn on by default
|
||||||
|
@ -40,4 +40,3 @@ vim.o.completeopt = 'menuone,noselect'
|
||||||
|
|
||||||
-- NOTE: You should make sure your terminal supports this
|
-- NOTE: You should make sure your terminal supports this
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
|
|
|
@ -57,14 +57,26 @@ local plugins = {
|
||||||
opts = {}
|
opts = {}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
--[[
|
||||||
{
|
{
|
||||||
-- Theme inspired by Atom
|
-- Theme inspired by Atom
|
||||||
|
--
|
||||||
'navarasu/onedark.nvim',
|
'navarasu/onedark.nvim',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd.colorscheme 'onedark'
|
vim.cmd.colorscheme 'onedark'
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
--]]
|
||||||
|
|
||||||
|
{
|
||||||
|
-- Theme inspired by Atom
|
||||||
|
'Mofiqul/dracula.nvim',
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
vim.cmd.colorscheme 'dracula'
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
-- Set lualine as statusline
|
-- Set lualine as statusline
|
||||||
|
@ -73,7 +85,7 @@ local plugins = {
|
||||||
opts = {
|
opts = {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = 'onedark',
|
theme = 'dracula',
|
||||||
component_separators = '|',
|
component_separators = '|',
|
||||||
section_separators = { left = '', right = '' },
|
section_separators = { left = '', right = '' },
|
||||||
},
|
},
|
||||||
|
@ -135,8 +147,8 @@ local plugins = {
|
||||||
require('neo-tree').setup {
|
require('neo-tree').setup {
|
||||||
filesystem = {
|
filesystem = {
|
||||||
filtered_items = {
|
filtered_items = {
|
||||||
visible = false,
|
visible = true,
|
||||||
hide_dotfiles = false,
|
hide_hidden = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue