base files
This commit is contained in:
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# nvim-kolorz
|
||||
|
||||
nvim-kolorz is a customisable nvim colorscheme.
|
||||
It is made to be used with [KonfiZ](https://github.com/Keyoonz/KonfiZ) which regenerate the colorscheme based on the current wallpaper.
|
||||
|
||||
## Installation :
|
||||
|
||||
```lua
|
||||
{
|
||||
"Keyoonz/nvim-kolorz",
|
||||
name = "nvim-kolorz",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd("colorscheme nvim-kolorz")
|
||||
end
|
||||
}
|
||||
```
|
||||
29
colors/nvim-kolorz.lua
Normal file
29
colors/nvim-kolorz.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
vim.cmd("hi clear")
|
||||
if vim.fn.exists("syntax_on") then
|
||||
vim.cmd("syntax reset")
|
||||
end
|
||||
|
||||
vim.o.background = "dark"
|
||||
vim.g.colors_name = "nvim-kolors"
|
||||
|
||||
local palette = require("nvim-kolorz.palette")
|
||||
|
||||
local highlights = {
|
||||
Normal = { fg = palette.c_normal_fg, bg = palette.c_normal_bg },
|
||||
Comment = { fg = palette.c_comment, italic = true },
|
||||
String = { fg = palette.c_string },
|
||||
Identifier = { fg = palette.c_identifier },
|
||||
Function = { fg = palette.c_function },
|
||||
Statement = { fg = palette.c_statement },
|
||||
Keyword = { fg = palette.c_keyword },
|
||||
Type = { fg = palette.c_type },
|
||||
Error = { fg = palette.c_error },
|
||||
Visual = { bg = palette.c_visual },
|
||||
LineNr = { fg = palette.c_line_nr },
|
||||
CursorLineNr = { fg = palette.c_cursor_line_nr, bold = true },
|
||||
StatusLine = { fg = palette.c_status_line_fg, bg = palette.c_status_line_bg },
|
||||
}
|
||||
|
||||
for group, opts in pairs(highlights) do
|
||||
vim.api.nvim_set_hl(0, group, opts)
|
||||
end
|
||||
24
lua/nvim-kolorz/colors.lua
Normal file
24
lua/nvim-kolorz/colors.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
-- Backgrounds & foregrounds
|
||||
c_normal_fg = "#cdd6f4",
|
||||
c_normal_bg = "#1e1e2e",
|
||||
|
||||
-- Syntax groups
|
||||
c_comment = "#6c7086",
|
||||
c_string = "#a6e3a1",
|
||||
c_identifier = "#89b4fa",
|
||||
c_function = "#b4befe",
|
||||
c_statement = "#f38ba8",
|
||||
c_keyword = "#f5c2e7",
|
||||
c_type = "#fab387",
|
||||
c_error = "#f38ba8",
|
||||
c_visual = "#313244",
|
||||
|
||||
-- Line numbers
|
||||
c_line_nr = "#585b70",
|
||||
c_cursor_line_nr = "#cdd6f4",
|
||||
|
||||
-- Statusline
|
||||
c_status_line_fg = "#1e1e2e",
|
||||
c_status_line_bg = "#cdd6f4",
|
||||
}
|
||||
Reference in New Issue
Block a user