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"' \ PS1 '"$PROMPT"' \
SUDO_PROMPT '"# "' \ SUDO_PROMPT '"# "' \
PATH '$HOME/exe:$HOME/.local/bin:$PATH' \ PATH '$HOME/exe:$HOME/.local/bin:$PATH' \
EDITOR '`goblin useprog vim vi ed`' \ EDITOR '`goblin which vim vi ed`' \
VISUAL '$EDITOR' \ VISUAL '$EDITOR' \
GIT_EDITOR '$VISUAL' \ GIT_EDITOR '$VISUAL' \
PAGER '`goblin useprog less more`' \ PAGER '`goblin which less more`' \
MANPAGER '$PAGER' \ MANPAGER '$PAGER' \
\ \
CDHIST '$HOME/lib/cds' \ CDHIST '$HOME/lib/cds' \

View file

@ -1,10 +1,12 @@
-- Surdeus init file. -- Surdeus init file.
-- surdeus@gmail.com -- surdeus@gmail.com
vim.cmd.language("en_US")
vim.opt.swapfile = false vim.opt.swapfile = false
vim.o.number = true vim.o.number = true
vim.o.cursorline = 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("indent")
require("maps") require("maps")

View file

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

View file

@ -6,12 +6,18 @@ local c = require("color.cons").colors
package.hls = { package.hls = {
Normal = {fg = c.white, bg = c.black}, 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}, CursorLine = {bold = true},
StatusLine = {fg = c.black, bg = c.red}, StatusLine = {fg = c.black, bg = c.green},
StatusLineNC = {fg = c.black, bg = c.lgray}, StatusLineNC = {fg = c.black, bg = c.lgray},
IncSearch = {fg=c.black, bg=c.purple}, IncSearch = {fg=c.black, bg=c.purple},
@ -20,15 +26,24 @@ package.hls = {
String = {fg=c.red}, String = {fg=c.red},
Constant = {fg=c.red}, Constant = {fg=c.red},
Special = {fg=c.lblue}, Special = {fg=c.green},
Function = {fg = c.lyellow}, Function = {bold = true, fg = c.lyellow},
Statement = {fg = c.lyellow}, Statement = {bold = true, fg = c.lyellow},
Type = {fg = c.green}, Type = {bold = true, fg = c.lgreen},
Structure = {bold = true, fg = c.green},
Operator = {bold = true, fg = c.green},
Comment = {fg=c.purple}, Comment = {fg=c.purple},
PreProc = {fg=c.lpurple},
Define = {fg=c.lpurple},
Folded = {fg=c.black, bg=lgray}, Folded = {fg=c.black, bg=lgray},
FoldColumn = {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 return package

View file

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