Refactored the colorscheme night.
This commit is contained in:
parent
9e4683275d
commit
d5acf56587
3 changed files with 36 additions and 13 deletions
|
@ -6,19 +6,20 @@ local c = require("color.cons").colors
|
||||||
package.hls = {
|
package.hls = {
|
||||||
Normal = {fg = "white", bg = "black"},
|
Normal = {fg = "white", bg = "black"},
|
||||||
|
|
||||||
TabLine = {fg = "black", bg = "lightgray"},
|
TabLine = {bold = false, fg = "black", bg = "darkgray" },
|
||||||
TabLineSel = {fg = "white", bg="green", ctermbg = "darkgreen"},
|
TabLineSel = {bold = true, fg = "black", bg="white"},
|
||||||
TabLineFill = {bg = "darkgray"},
|
|
||||||
|
|
||||||
LineNr = {fg = "black", bg="lightgray"},
|
TabLineFill = {bold = false, bg = "gray"},
|
||||||
CursorLineNr = {fg = "white", bg="green", ctermbg="darkgreen"},
|
|
||||||
|
LineNr = {bold = false, fg = "gray"},
|
||||||
|
CursorLineNr = {bold = true, fg="white"},
|
||||||
|
|
||||||
Cursor = {reverse=true},
|
Cursor = {reverse=true},
|
||||||
lCursor = {reverse=true},
|
lCursor = {reverse=true},
|
||||||
CursorLine = {bold = true},
|
CursorLine = {bold = true},
|
||||||
|
|
||||||
StatusLine = {fg = "white", bg="green", ctermbg = "darkgreen"},
|
StatusLine = {bold = true, fg="black", bg="white"},
|
||||||
StatusLineNC = {fg = "black", bg = "lightgray"},
|
StatusLineNC = {bold= false, fg = "black", bg = "darkgray"},
|
||||||
|
|
||||||
IncSearch = {fg="black", bg="magenta"},
|
IncSearch = {fg="black", bg="magenta"},
|
||||||
Search = {fg="black", bg="magenta"},
|
Search = {fg="black", bg="magenta"},
|
||||||
|
@ -36,13 +37,18 @@ package.hls = {
|
||||||
Type = {bold = true, fg = "lightgreen"},
|
Type = {bold = true, fg = "lightgreen"},
|
||||||
Structure = {bold = true, fg = "lightgreen"},
|
Structure = {bold = true, fg = "lightgreen"},
|
||||||
Operator = {bold = true, fg = "lightgreen"},
|
Operator = {bold = true, fg = "lightgreen"},
|
||||||
|
Identifier = {bold = true, fg = "yellow"},
|
||||||
|
|
||||||
Folded = {fg="black", bg="lightgray"},
|
Folded = {fg="gray", bg="none"},
|
||||||
FoldColumn = {fg="black", bg="lightgray"},
|
FoldColumn = {fg="black", bg="gray"},
|
||||||
|
|
||||||
Ignore = {fg="lightgreen"},
|
Ignore = {fg="lightgreen"},
|
||||||
Error = {fg="white", bg="red"},
|
Error = {fg="white", bg="red"},
|
||||||
Underlined = {underline = true},
|
Underlined = {underline = true},
|
||||||
|
|
||||||
|
VertSplit = {bold=true, fg="gray"},
|
||||||
|
|
||||||
|
Visual = {reverse=true},
|
||||||
}
|
}
|
||||||
|
|
||||||
return package
|
return package
|
||||||
|
|
|
@ -1,17 +1,29 @@
|
||||||
|
|
||||||
-- Golang, C based configuration
|
-- Golang, C based configuration
|
||||||
vim.o.autoindent = true
|
vim.o.autoindent = true
|
||||||
vim.o.expandtab = false
|
vim.o.foldmethod = 'indent'
|
||||||
vim.o.tabstop = 4
|
|
||||||
vim.o.shiftwidth = 4
|
|
||||||
|
|
||||||
createAutoCmd = vim.api.nvim_create_autocmd
|
createAutoCmd = vim.api.nvim_create_autocmd
|
||||||
|
|
||||||
|
-- Basic thing for compiling languages.
|
||||||
|
createAutoCmd({
|
||||||
|
"BufNewFile",
|
||||||
|
"BufRead",
|
||||||
|
},{
|
||||||
|
pattern = "*.go,*.c,*.cc,*.C,*.cpp,*.rs",
|
||||||
|
callback = function()
|
||||||
|
local buf = vim.bo[vim.api.nvim_get_current_buf()]
|
||||||
|
vim.o.expandtab = false
|
||||||
|
vim.o.tabstop = 4
|
||||||
|
vim.o.shiftwidth = 4
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
createAutoCmd({
|
createAutoCmd({
|
||||||
"BufNewFile",
|
"BufNewFile",
|
||||||
"BufRead",
|
"BufRead",
|
||||||
},{
|
},{
|
||||||
pattern = "*.lua,*.js,*.jsx,*.scss,*.css,*.html,*.tmpl,*.tpl,*.yml,*.yaml,*.toml,*.tml",
|
pattern = "*.lua,*.js,*.jsx,*.scss,*.css,*.sass,*.html,*.htmlx,*.tmpl,*.tpl,*.yml,*.yaml,*.toml,*.tml",
|
||||||
callback = function()
|
callback = function()
|
||||||
local buf = vim.bo[vim.api.nvim_get_current_buf()]
|
local buf = vim.bo[vim.api.nvim_get_current_buf()]
|
||||||
buf.expandtab = true
|
buf.expandtab = true
|
||||||
|
@ -36,3 +48,4 @@ createAutoCmd({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,10 @@ local opts = {silent = true}
|
||||||
-- Tabs.
|
-- Tabs.
|
||||||
map('n', '\\tn', ':tabnew\n', opts)
|
map('n', '\\tn', ':tabnew\n', opts)
|
||||||
|
|
||||||
|
-- Fold
|
||||||
|
|
||||||
|
map('n', 'zO', "zR", opts)
|
||||||
|
|
||||||
-- Insert
|
-- Insert
|
||||||
-- Literal tabs with Shift-Tab
|
-- Literal tabs with Shift-Tab
|
||||||
map('i', '<S-Tab>', '\t', opts)
|
map('i', '<S-Tab>', '\t', opts)
|
||||||
|
|
Loading…
Reference in a new issue