More coloring for nvim and maps.

This commit is contained in:
Andrey Parhomenko 2023-08-30 10:47:50 +03:00
parent ff6cd1e5e1
commit 9870d55783
6 changed files with 31 additions and 10 deletions

View file

@ -1 +1 @@
./profile
. $HOME/.profile

View file

@ -22,10 +22,10 @@ export_loop \
PS1 '"$PROMPT"' \
SUDO_PROMPT '"# "' \
PATH '$HOME/exe:$HOME/.local/bin:$PATH' \
EDITOR '`goblin useprog vim vi ed`' \
EDITOR '`goblin which vim vi ed`' \
VISUAL '$EDITOR' \
GIT_EDITOR '$VISUAL' \
PAGER '`goblin useprog less more`' \
PAGER '`goblin which less more`' \
MANPAGER '$PAGER' \
\
CDHIST '$HOME/lib/cds' \

View file

@ -1,10 +1,12 @@
-- Surdeus init file.
-- surdeus@gmail.com
vim.cmd.language("en_US")
vim.opt.swapfile = false
vim.o.number = true
vim.o.cursorline = true
vim.o.guicursor = 'n-v-c-sm-i-ci-ve:block,r-cr-o:hor20,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor'
require("indent")
require("maps")

View file

@ -9,7 +9,10 @@ package.colors = {
lgray = "#BBBBBB",
red = "#FF0000",
green = "#00FF00",
dgreen = "#00bb00",
blue = "#0000FF",
lblue = "#0089ff",

View file

@ -6,12 +6,18 @@ local c = require("color.cons").colors
package.hls = {
Normal = {fg = c.white, bg = c.black},
LineNr = {fg = c.black, bg=c.white},
TabLine = {fg = c.black, bg = c.lgray},
TabLineSel = {fg = c.black, bg = c.green},
TabLineFill = {bg = c.gray},
Cursor = {fg = c.black, bg = c.green},
LineNr = {fg = c.black, bg=c.white},
CursorLineNr = {fg = c.white, bg=c.black},
Cursor = {reverse=true},
lCursor = {reverse=true},
CursorLine = {bold = true},
StatusLine = {fg = c.black, bg = c.red},
StatusLine = {fg = c.black, bg = c.green},
StatusLineNC = {fg = c.black, bg = c.lgray},
IncSearch = {fg=c.black, bg=c.purple},
@ -20,15 +26,24 @@ package.hls = {
String = {fg=c.red},
Constant = {fg=c.red},
Special = {fg=c.lblue},
Special = {fg=c.green},
Function = {fg = c.lyellow},
Statement = {fg = c.lyellow},
Type = {fg = c.green},
Function = {bold = true, fg = c.lyellow},
Statement = {bold = true, fg = c.lyellow},
Type = {bold = true, fg = c.lgreen},
Structure = {bold = true, fg = c.green},
Operator = {bold = true, fg = c.green},
Comment = {fg=c.purple},
PreProc = {fg=c.lpurple},
Define = {fg=c.lpurple},
Folded = {fg=c.black, bg=lgray},
FoldColumn = {fg=c.black, bg=lgray},
Ignore = {fg=c.lgreen},
Error = {fg=c.white, bg=c.red},
Underlined = {underline = true},
}
return package

View file

@ -37,6 +37,7 @@ local opts = {silent = true}
map('n', '<C-j>', '<C-w>-', opts)
map('n', '<C-h>', '3<C-w><', opts)
map('n', '<C-l>', '3<C-w>>', opts)
map('n', '<space>', '3<C-w>>', opts)
-- Splitting
map('n', '\\|', '<C-w>v', opts)
map('n', '\\-', '<C-w>s', opts)