change colorscheme, add write keymap
This commit is contained in:
parent
a2b5368128
commit
aa340b05a9
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
|
|
||||||
|
-- common vim commands in normal mode
|
||||||
|
vim.keymap.set('n', '<leader>w', ':w<CR>')
|
||||||
|
|
||||||
-- paste and search
|
-- paste and search
|
||||||
vim.keymap.set('n', '<silent><leader><space>', ':noh <BAR> :let @/ = ""<CR>')
|
vim.keymap.set('n', '<silent><leader><space>', ':noh <BAR> :let @/ = ""<CR>')
|
||||||
vim.keymap.set('n', '<leader>i', ':set invpaste<CR>')
|
vim.keymap.set('n', '<leader>i', ':set invpaste<CR>')
|
||||||
|
|||||||
@ -3,9 +3,9 @@
|
|||||||
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-night')
|
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-night')
|
||||||
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-moon')
|
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-moon')
|
||||||
|
|
||||||
-- local ok, _ = pcall(vim.cmd, 'colorscheme nightfly')
|
local ok, _ = pcall(vim.cmd, 'colorscheme nightfly')
|
||||||
|
-- local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
|
||||||
|
|
||||||
local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
|
|
||||||
if not ok then
|
if not ok then
|
||||||
vim.cmd 'colorscheme default' -- if the above fails, then use default
|
vim.cmd 'colorscheme default' -- if the above fails, then use default
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user