fmt(neovim): stylua
This commit is contained in:
parent
1929a53229
commit
97b2bb0d4f
11 changed files with 1190 additions and 1117 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
vim.opt.background = 'dark'
|
vim.opt.background = "dark"
|
||||||
vim.g.colors_name = 'jdkaplan-cool'
|
vim.g.colors_name = "jdkaplan-cool"
|
||||||
|
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
local pkg = 'jdkaplan.cool_theme'
|
local pkg = "jdkaplan.cool_theme"
|
||||||
|
|
||||||
-- Clear the Lua cache for the theme package to force it to load every time.
|
-- Clear the Lua cache for the theme package to force it to load every time.
|
||||||
package.loaded[pkg] = nil
|
package.loaded[pkg] = nil
|
||||||
|
|
||||||
local lush = require('lush')
|
local lush = require("lush")
|
||||||
local theme = require(pkg)
|
local theme = require(pkg)
|
||||||
|
|
||||||
lush(theme)
|
lush(theme)
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
vim.opt.background = 'light'
|
vim.opt.background = "light"
|
||||||
vim.g.colors_name = 'jdkaplan-warm'
|
vim.g.colors_name = "jdkaplan-warm"
|
||||||
|
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
local pkg = 'jdkaplan.warm_theme'
|
local pkg = "jdkaplan.warm_theme"
|
||||||
|
|
||||||
-- Clear the Lua cache for the theme package to force it to load every time.
|
-- Clear the Lua cache for the theme package to force it to load every time.
|
||||||
package.loaded[pkg] = nil
|
package.loaded[pkg] = nil
|
||||||
|
|
||||||
local lush = require('lush')
|
local lush = require("lush")
|
||||||
local theme = require(pkg)
|
local theme = require(pkg)
|
||||||
|
|
||||||
lush(theme)
|
lush(theme)
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,13 @@
|
||||||
local bufnr = vim.api.nvim_get_current_buf()
|
local bufnr = vim.api.nvim_get_current_buf()
|
||||||
|
|
||||||
function rustLspMap(mode, keys, cmd)
|
function rustLspMap(mode, keys, cmd)
|
||||||
vim.keymap.set(
|
vim.keymap.set(mode, keys, function()
|
||||||
mode,
|
vim.cmd.RustLsp(cmd)
|
||||||
keys,
|
end, { silent = true, buffer = bufnr })
|
||||||
function() vim.cmd.RustLsp(cmd) end,
|
|
||||||
{ silent = true, buffer = bufnr }
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Use rust-analyzer's grouping of actions
|
-- Use rust-analyzer's grouping of actions
|
||||||
rustLspMap("n", "gra", "codeAction")
|
rustLspMap("n", "gra", "codeAction")
|
||||||
|
|
||||||
-- Use rustaceanvim's hover actions
|
-- Use rustaceanvim's hover actions
|
||||||
rustLspMap("n", "K", {'hover', 'actions'})
|
rustLspMap("n", "K", { "hover", "actions" })
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
vim.o.shell = '/bin/sh'
|
vim.o.shell = "/bin/sh"
|
||||||
vim.g.python3_host_prog = vim.fn.expand("~/.virtualenvs/neovim3/bin/python")
|
vim.g.python3_host_prog = vim.fn.expand("~/.virtualenvs/neovim3/bin/python")
|
||||||
|
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
|
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
|
||||||
vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" })
|
vim.fn.system({ "git", "-C", lazypath, "checkout", "tags/stable" })
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
-- Load from ./lua/plugins/*.lua
|
-- Load from ./lua/plugins/*.lua
|
||||||
require("lazy").setup("plugins", {
|
require("lazy").setup("plugins", {
|
||||||
change_detection = {
|
change_detection = {
|
||||||
-- Disable automatic reloading of config files.
|
-- Disable automatic reloading of config files.
|
||||||
enabled = false,
|
enabled = false,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
theme = "jdkaplan-temp"
|
theme = "jdkaplan-temp"
|
||||||
|
|
@ -45,11 +45,11 @@ vim.keymap.set("", "k", "gk", { silent = true })
|
||||||
vim.o.list = false
|
vim.o.list = false
|
||||||
vim.o.wrapmargin = 0
|
vim.o.wrapmargin = 0
|
||||||
vim.opt.listchars = {
|
vim.opt.listchars = {
|
||||||
tab = ">-",
|
tab = ">-",
|
||||||
extends = ">",
|
extends = ">",
|
||||||
precedes = "<",
|
precedes = "<",
|
||||||
nbsp = "+",
|
nbsp = "+",
|
||||||
trail = "-",
|
trail = "-",
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.o.ignorecase = true
|
vim.o.ignorecase = true
|
||||||
|
|
@ -74,23 +74,23 @@ vim.o.secure = true
|
||||||
|
|
||||||
vim.keymap.set("", "<Space>w", "<C-w>", { remap = true })
|
vim.keymap.set("", "<Space>w", "<C-w>", { remap = true })
|
||||||
vim.keymap.set("", '<Space>w"', ":split<CR>")
|
vim.keymap.set("", '<Space>w"', ":split<CR>")
|
||||||
vim.keymap.set("", '<Space>w%', ":vsplit<CR>")
|
vim.keymap.set("", "<Space>w%", ":vsplit<CR>")
|
||||||
|
|
||||||
vim.keymap.set("", '<Leader>w', ":w<CR>")
|
vim.keymap.set("", "<Leader>w", ":w<CR>")
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-w>]", function()
|
vim.keymap.set("n", "<C-w>]", function()
|
||||||
if vim.api.nvim_win_get_width(0) > 2 * 80 then
|
if vim.api.nvim_win_get_width(0) > 2 * 80 then
|
||||||
vim.cmd('vertical wincmd ]')
|
vim.cmd("vertical wincmd ]")
|
||||||
else
|
else
|
||||||
vim.cmd('horizontal wincmd ]')
|
vim.cmd("horizontal wincmd ]")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- TODO: Delete these ; fake-leader bindings
|
-- TODO: Delete these ; fake-leader bindings
|
||||||
vim.keymap.set("", ';w', ":w<CR>")
|
vim.keymap.set("", ";w", ":w<CR>")
|
||||||
|
|
||||||
-- TODO: Delete these ; fake-leader bindings
|
-- TODO: Delete these ; fake-leader bindings
|
||||||
vim.keymap.set("", ';;', ";")
|
vim.keymap.set("", ";;", ";")
|
||||||
|
|
||||||
vim.keymap.set("", "<Space><Space>", ":nohlsearch<CR>")
|
vim.keymap.set("", "<Space><Space>", ":nohlsearch<CR>")
|
||||||
|
|
||||||
|
|
@ -128,27 +128,35 @@ vim.opt.spellcapcheck = ""
|
||||||
-- CTRL-L usually clears and redraws the screen. Might as well use it to reset
|
-- CTRL-L usually clears and redraws the screen. Might as well use it to reset
|
||||||
-- the colorscheme too!
|
-- the colorscheme too!
|
||||||
vim.keymap.set("n", "<C-l>", function()
|
vim.keymap.set("n", "<C-l>", function()
|
||||||
vim.cmd.colorscheme(theme)
|
vim.cmd.colorscheme(theme)
|
||||||
vim.cmd.redraw()
|
vim.cmd.redraw()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.diagnostic.config({ jump = { float = true } })
|
vim.diagnostic.config({ jump = { float = true } })
|
||||||
|
|
||||||
function auto_correct(mode, old, new, scale, limit, cmd)
|
function auto_correct(mode, old, new, scale, limit, cmd)
|
||||||
delay = scale
|
delay = scale
|
||||||
|
|
||||||
vim.keymap.set(mode, old, function()
|
vim.keymap.set(mode, old, function()
|
||||||
vim.print("You should use " .. new)
|
vim.print("You should use " .. new)
|
||||||
vim.cmd.sleep(delay .. "m")
|
vim.cmd.sleep(delay .. "m")
|
||||||
cmd()
|
cmd()
|
||||||
delay = math.min(delay + scale, limit)
|
delay = math.min(delay + scale, limit)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
auto_correct("n", ';"', '<C-w>s', 100, 1000, vim.cmd.split)
|
auto_correct("n", ';"', "<C-w>s", 100, 1000, vim.cmd.split)
|
||||||
auto_correct("n", ';%', '<C-w>v', 100, 1000, vim.cmd.vsplit)
|
auto_correct("n", ";%", "<C-w>v", 100, 1000, vim.cmd.vsplit)
|
||||||
auto_correct("n", ';0', '<C-w>c', 100, 1000, vim.cmd.close)
|
auto_correct("n", ";0", "<C-w>c", 100, 1000, vim.cmd.close)
|
||||||
auto_correct("n", ";h", "<C-w>h", 10, 500, function() vim.cmd.wincmd("h") end)
|
auto_correct("n", ";h", "<C-w>h", 10, 500, function()
|
||||||
auto_correct("n", ";j", "<C-w>j", 10, 500, function() vim.cmd.wincmd("j") end)
|
vim.cmd.wincmd("h")
|
||||||
auto_correct("n", ";k", "<C-w>k", 10, 500, function() vim.cmd.wincmd("k") end)
|
end)
|
||||||
auto_correct("n", ";l", "<C-w>l", 10, 500, function() vim.cmd.wincmd("l") end)
|
auto_correct("n", ";j", "<C-w>j", 10, 500, function()
|
||||||
|
vim.cmd.wincmd("j")
|
||||||
|
end)
|
||||||
|
auto_correct("n", ";k", "<C-w>k", 10, 500, function()
|
||||||
|
vim.cmd.wincmd("k")
|
||||||
|
end)
|
||||||
|
auto_correct("n", ";l", "<C-w>l", 10, 500, function()
|
||||||
|
vim.cmd.wincmd("l")
|
||||||
|
end)
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "220446c8c86a280180d852efac60991eaf1a21d4" },
|
"gitsigns.nvim": { "branch": "main", "commit": "220446c8c86a280180d852efac60991eaf1a21d4" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||||
"keytrail.nvim": { "branch": "main", "commit": "153a76d5891065a328be82316b6813662904da71" },
|
"keytrail.nvim": { "branch": "main", "commit": "153a76d5891065a328be82316b6813662904da71" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" },
|
"lazy.nvim": { "branch": "main", "commit": "ed4dc336a73c18da6fea6e1cf7ad6e1b76d281eb" },
|
||||||
"lush.nvim": { "branch": "main", "commit": "9c60ec2279d62487d942ce095e49006af28eed6e" },
|
"lush.nvim": { "branch": "main", "commit": "9c60ec2279d62487d942ce095e49006af28eed6e" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "2304ff65ecc8cb2afc2484de3e2ed9a407edf0b9" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "1d77bd86e1c3eaa777010c95dad455b83823f247" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
||||||
"nerdtree": { "branch": "master", "commit": "690d061b591525890f1471c6675bcb5bdc8cdff9" },
|
"nerdtree": { "branch": "master", "commit": "690d061b591525890f1471c6675bcb5bdc8cdff9" },
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "a96172f673f720cd4f3572e1fcd08400ed3eb25d" },
|
"none-ls.nvim": { "branch": "main", "commit": "a96172f673f720cd4f3572e1fcd08400ed3eb25d" },
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
"nvim-cmp": { "branch": "main", "commit": "a7bcf1d88069fc67c9ace8a62ba480b8fe879025" },
|
"nvim-cmp": { "branch": "main", "commit": "a7bcf1d88069fc67c9ace8a62ba480b8fe879025" },
|
||||||
"nvim-coverage": { "branch": "main", "commit": "a939e425e363319d952a6c35fb3f38b34041ded2" },
|
"nvim-coverage": { "branch": "main", "commit": "a939e425e363319d952a6c35fb3f38b34041ded2" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "6782b097af2417a4c3e33849b0a26ae2188bd7ea" },
|
"nvim-dap": { "branch": "master", "commit": "6782b097af2417a4c3e33849b0a26ae2188bd7ea" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "52a893217b2c12e215c6851bd8813b43204416cd" },
|
"nvim-lspconfig": { "branch": "master", "commit": "a9b2fb560c4ab22c10728fd5149dbd7b62aa4f69" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "0cadeb0f1930e6b25cf65395f8269bfcc36b6791" },
|
"nvim-surround": { "branch": "main", "commit": "fcfa7e02323d57bfacc3a141f8a74498e1522064" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "a9742cbc1f95db9eaf3293bf8cd0622ca36542bb" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "a9742cbc1f95db9eaf3293bf8cd0622ca36542bb" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },
|
||||||
|
|
|
||||||
|
|
@ -1,210 +1,211 @@
|
||||||
local lush = require('lush')
|
local lush = require("lush")
|
||||||
local hsl = lush.hsl
|
local hsl = lush.hsl
|
||||||
|
|
||||||
local theme = lush(function(injected_functions)
|
local theme = lush(function(injected_functions)
|
||||||
-- Required alias for treesitter groups.
|
-- Required alias for treesitter groups.
|
||||||
-- https://github.com/rktjmp/lush.nvim/issues/109
|
-- https://github.com/rktjmp/lush.nvim/issues/109
|
||||||
local sym = injected_functions.sym
|
local sym = injected_functions.sym
|
||||||
|
|
||||||
return {
|
-- stylua: ignore
|
||||||
ColorColumn { bg = '#5F0000' }, -- Columns set with 'colorcolumn'
|
return {
|
||||||
Conceal {}, -- Placeholder characters substituted for concealed text (see 'conceallevel')
|
ColorColumn { bg = '#5F0000' }, -- Columns set with 'colorcolumn'
|
||||||
Cursor { reverse = true }, -- Character under the cursor
|
Conceal {}, -- Placeholder characters substituted for concealed text (see 'conceallevel')
|
||||||
lCursor {}, -- Character under the cursor when |language-mapping| is used (see 'guicursor')
|
Cursor { reverse = true }, -- Character under the cursor
|
||||||
CursorIM {}, -- Like Cursor, but used when in IME mode |CursorIM|
|
lCursor {}, -- Character under the cursor when |language-mapping| is used (see 'guicursor')
|
||||||
CursorLine { bg = '#000000' }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
|
CursorIM {}, -- Like Cursor, but used when in IME mode |CursorIM|
|
||||||
CursorColumn { CursorLine }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
CursorLine { bg = '#000000' }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
|
||||||
Directory { fg = '#007CFF'}, -- Directory names (and other special names in listings)
|
CursorColumn { CursorLine }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
||||||
DiffAdd { bg = '#005F00' }, -- Diff mode: Added line |diff.txt|
|
Directory { fg = '#007CFF'}, -- Directory names (and other special names in listings)
|
||||||
DiffChange { bg = '#00005F' }, -- Diff mode: Changed line |diff.txt|
|
DiffAdd { bg = '#005F00' }, -- Diff mode: Added line |diff.txt|
|
||||||
DiffDelete { bg = '#5f0000' }, -- Diff mode: Deleted line |diff.txt|
|
DiffChange { bg = '#00005F' }, -- Diff mode: Changed line |diff.txt|
|
||||||
DiffText { bg = '#5F00D7', bold = true }, -- Diff mode: Changed text within a changed line |diff.txt|
|
DiffDelete { bg = '#5f0000' }, -- Diff mode: Deleted line |diff.txt|
|
||||||
TermCursor { Cursor }, -- Cursor in a focused terminal
|
DiffText { bg = '#5F00D7', bold = true }, -- Diff mode: Changed text within a changed line |diff.txt|
|
||||||
TermCursorNC {}, -- Cursor in an unfocused terminal
|
TermCursor { Cursor }, -- Cursor in a focused terminal
|
||||||
ErrorMsg { fg = '#D70000' }, -- Error messages on the command line
|
TermCursorNC {}, -- Cursor in an unfocused terminal
|
||||||
VertSplit { fg = '#4E4E4E' }, -- Column separating vertically split windows
|
ErrorMsg { fg = '#D70000' }, -- Error messages on the command line
|
||||||
Folded { fg = '#F0C674', bg = '#282A2E'}, -- Line used for closed folds
|
VertSplit { fg = '#4E4E4E' }, -- Column separating vertically split windows
|
||||||
FoldColumn { fg = '#8ABEB7', bg = '#6C6C6C' }, -- 'foldcolumn'
|
Folded { fg = '#F0C674', bg = '#282A2E'}, -- Line used for closed folds
|
||||||
SignColumn { FoldColumn }, -- Column where |signs| are displayed
|
FoldColumn { fg = '#8ABEB7', bg = '#6C6C6C' }, -- 'foldcolumn'
|
||||||
LineNr { fg = '#a7a7a7' }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
SignColumn { FoldColumn }, -- Column where |signs| are displayed
|
||||||
CursorLineNr { fg = '#FFD787' }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
LineNr { fg = '#a7a7a7' }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
||||||
MatchParen { fg = '#FF875F' }, -- Character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
CursorLineNr { fg = '#FFD787' }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
||||||
ModeMsg { bold = true }, -- 'showmode' message (e.g., "-- INSERT -- ")
|
MatchParen { fg = '#FF875F' }, -- Character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
||||||
MsgArea {}, -- Area for messages and cmdline
|
ModeMsg { bold = true }, -- 'showmode' message (e.g., "-- INSERT -- ")
|
||||||
MoreMsg { bold = true }, -- |more-prompt|
|
MsgArea {}, -- Area for messages and cmdline
|
||||||
NonText { fg = '#87AFD7', bg = '#444444' }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
MoreMsg { bold = true }, -- |more-prompt|
|
||||||
EndOfBuffer { NonText }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
NonText { fg = '#87AFD7', bg = '#444444' }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
||||||
Normal { fg = "#ffffff" }, -- Normal text
|
EndOfBuffer { NonText }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
||||||
NormalFloat { bg = "#111111" }, -- Normal text in floating windows.
|
Normal { fg = "#ffffff" }, -- Normal text
|
||||||
NormalNC {}, -- normal text in non-current windows
|
NormalFloat { bg = "#111111" }, -- Normal text in floating windows.
|
||||||
Pmenu { bg = "#111111" }, -- Popup menu: Normal item.
|
NormalNC {}, -- normal text in non-current windows
|
||||||
PmenuSel { bg = "#000000" }, -- Popup menu: Selected item.
|
Pmenu { bg = "#111111" }, -- Popup menu: Normal item.
|
||||||
PmenuSbar { bg = "#000000" }, -- Popup menu: Scrollbar.
|
PmenuSel { bg = "#000000" }, -- Popup menu: Selected item.
|
||||||
PmenuThumb { bg = "#ffffff" }, -- Popup menu: Thumb of the scrollbar.
|
PmenuSbar { bg = "#000000" }, -- Popup menu: Scrollbar.
|
||||||
Question { fg = '#87FFAF' }, -- |hit-enter| prompt and yes/no questions
|
PmenuThumb { bg = "#ffffff" }, -- Popup menu: Thumb of the scrollbar.
|
||||||
IncSearch { reverse = true }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
Question { fg = '#87FFAF' }, -- |hit-enter| prompt and yes/no questions
|
||||||
Search { fg = '#000000', bg = '#D7AF00' }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
IncSearch { reverse = true }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
||||||
QuickFixLine { Search }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
Search { fg = '#000000', bg = '#D7AF00' }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
||||||
Substitute { Search }, -- |:substitute| replacement text highlighting
|
QuickFixLine { Search }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
||||||
SpecialKey { fg = '#84D45F' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
|
Substitute { Search }, -- |:substitute| replacement text highlighting
|
||||||
SpellBad { underline = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
|
SpecialKey { fg = '#84D45F' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
|
||||||
SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
|
SpellBad { underline = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
|
||||||
SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
|
SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
|
||||||
SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
|
SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
|
||||||
StatusLine { fg = '#FFFFFF', bg = '#444444' }, -- Status line of current window
|
SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
|
||||||
StatusLineNC { fg = '#6D7073', bg = '#303030' }, -- Status lines of not-current windows. Note: If this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
|
StatusLine { fg = '#FFFFFF', bg = '#444444' }, -- Status line of current window
|
||||||
MsgSeparator { StatusLine }, -- Separator for scrolled messages, `msgsep` flag of 'display'
|
StatusLineNC { fg = '#6D7073', bg = '#303030' }, -- Status lines of not-current windows. Note: If this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
|
||||||
TabLine {}, -- Tab pages line, not active tab page label
|
MsgSeparator { StatusLine }, -- Separator for scrolled messages, `msgsep` flag of 'display'
|
||||||
TabLineFill {}, -- Tab pages line, where there are no labels
|
TabLine {}, -- Tab pages line, not active tab page label
|
||||||
TabLineSel {}, -- Tab pages line, active tab page label
|
TabLineFill {}, -- Tab pages line, where there are no labels
|
||||||
Title {}, -- Titles for output from ":set all", ":autocmd" etc.
|
TabLineSel {}, -- Tab pages line, active tab page label
|
||||||
Visual { bg = '#3A3A3A' }, -- Visual mode selection
|
Title {}, -- Titles for output from ":set all", ":autocmd" etc.
|
||||||
VisualNOS {}, -- Visual mode selection when vim is "Not Owning the Selection".
|
Visual { bg = '#3A3A3A' }, -- Visual mode selection
|
||||||
WarningMsg { fg = '#FFD700' }, -- Warning messages
|
VisualNOS {}, -- Visual mode selection when vim is "Not Owning the Selection".
|
||||||
Whitespace { fg = '#4E4E4E' }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
|
WarningMsg { fg = '#FFD700' }, -- Warning messages
|
||||||
Winseparator { VertSplit }, -- Separator between window splits. Inherts from |hl-VertSplit| by default, which it will replace eventually.
|
Whitespace { fg = '#4E4E4E' }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
|
||||||
WildMenu { fg = '#282A2E', bg = '#F0C674' }, -- Current match in 'wildmenu' completion
|
Winseparator { VertSplit }, -- Separator between window splits. Inherts from |hl-VertSplit| by default, which it will replace eventually.
|
||||||
|
WildMenu { fg = '#282A2E', bg = '#F0C674' }, -- Current match in 'wildmenu' completion
|
||||||
|
|
||||||
Comment { fg = '#AFAFAF' }, -- Any comment
|
Comment { fg = '#AFAFAF' }, -- Any comment
|
||||||
|
|
||||||
Constant { fg = '#AF87FF' }, -- (*) Any constant
|
Constant { fg = '#AF87FF' }, -- (*) Any constant
|
||||||
String { fg = '#D7AF00' }, -- A string constant: "this is a string"
|
String { fg = '#D7AF00' }, -- A string constant: "this is a string"
|
||||||
Character { Constant }, -- A character constant: 'c', '\n'
|
Character { Constant }, -- A character constant: 'c', '\n'
|
||||||
Number { fg = '#FF8700' }, -- A number constant: 234, 0xff
|
Number { fg = '#FF8700' }, -- A number constant: 234, 0xff
|
||||||
Boolean { Constant }, -- A boolean constant: TRUE, false
|
Boolean { Constant }, -- A boolean constant: TRUE, false
|
||||||
Float { Number }, -- A floating point constant: 2.3e10
|
Float { Number }, -- A floating point constant: 2.3e10
|
||||||
|
|
||||||
Identifier { Normal }, -- (*) Any variable name
|
Identifier { Normal }, -- (*) Any variable name
|
||||||
Function { fg = '#00D7FF' }, -- Function name (also: methods for classes)
|
Function { fg = '#00D7FF' }, -- Function name (also: methods for classes)
|
||||||
|
|
||||||
Statement { fg = '#5FD75F' }, -- (*) Any statement
|
Statement { fg = '#5FD75F' }, -- (*) Any statement
|
||||||
Conditional { Statement }, -- if, then, else, endif, switch, etc.
|
Conditional { Statement }, -- if, then, else, endif, switch, etc.
|
||||||
Repeat { Statement }, -- for, do, while, etc.
|
Repeat { Statement }, -- for, do, while, etc.
|
||||||
Label { Statement }, -- case, default, etc.
|
Label { Statement }, -- case, default, etc.
|
||||||
Operator { Statement }, -- "sizeof", "+", "*", etc.
|
Operator { Statement }, -- "sizeof", "+", "*", etc.
|
||||||
Keyword { Statement }, -- any other keyword
|
Keyword { Statement }, -- any other keyword
|
||||||
Exception { Statement }, -- try, catch, throw
|
Exception { Statement }, -- try, catch, throw
|
||||||
|
|
||||||
PreProc { Statement }, -- (*) Generic Preprocessor
|
PreProc { Statement }, -- (*) Generic Preprocessor
|
||||||
Include { Statement }, -- Preprocessor #include
|
Include { Statement }, -- Preprocessor #include
|
||||||
Define { Statement }, -- Preprocessor #define
|
Define { Statement }, -- Preprocessor #define
|
||||||
Macro { Statement }, -- Same as Define
|
Macro { Statement }, -- Same as Define
|
||||||
PreCondit { Statement }, -- Preprocessor #if, #else, #endif, etc.
|
PreCondit { Statement }, -- Preprocessor #if, #else, #endif, etc.
|
||||||
|
|
||||||
Type { fg = '#D7D700' }, -- (*) int, long, char, etc.
|
Type { fg = '#D7D700' }, -- (*) int, long, char, etc.
|
||||||
StorageClass { Type }, -- static, register, volatile, etc.
|
StorageClass { Type }, -- static, register, volatile, etc.
|
||||||
Structure { Type }, -- struct, union, enum, etc.
|
Structure { Type }, -- struct, union, enum, etc.
|
||||||
Typedef { Type }, -- A typedef
|
Typedef { Type }, -- A typedef
|
||||||
|
|
||||||
Special { fg = '#FFFFFF' }, -- (*) Any special symbol
|
Special { fg = '#FFFFFF' }, -- (*) Any special symbol
|
||||||
SpecialChar { Special }, -- Special character in a constant
|
SpecialChar { Special }, -- Special character in a constant
|
||||||
Tag { Special }, -- You can use CTRL-] on this
|
Tag { Special }, -- You can use CTRL-] on this
|
||||||
Delimiter { Special }, -- Character that needs attention
|
Delimiter { Special }, -- Character that needs attention
|
||||||
SpecialComment { Special }, -- Special things inside a comment (e.g. '\n')
|
SpecialComment { Special }, -- Special things inside a comment (e.g. '\n')
|
||||||
Debug { Special }, -- Debugging statements
|
Debug { Special }, -- Debugging statements
|
||||||
|
|
||||||
Underlined { gui = "underline" }, -- Text that stands out, HTML links
|
Underlined { gui = "underline" }, -- Text that stands out, HTML links
|
||||||
Ignore { fg = '#000000' }, -- Left blank, hidden |hl-Ignore| (NOTE: May be invisible here in template)
|
Ignore { fg = '#000000' }, -- Left blank, hidden |hl-Ignore| (NOTE: May be invisible here in template)
|
||||||
Error { fg = '#EEEEEE', bg = '#AF0000' }, -- Any erroneous construct
|
Error { fg = '#EEEEEE', bg = '#AF0000' }, -- Any erroneous construct
|
||||||
Todo { fg = '#D70000' }, -- Anything that needs extra attention; mostly the keywords TODO FIXME and XXX
|
Todo { fg = '#D70000' }, -- Anything that needs extra attention; mostly the keywords TODO FIXME and XXX
|
||||||
|
|
||||||
LspInlayHint { Comment },
|
LspInlayHint { Comment },
|
||||||
LspReferenceText {} , -- Used for highlighting "text" references
|
LspReferenceText {} , -- Used for highlighting "text" references
|
||||||
LspReferenceRead {} , -- Used for highlighting "read" references
|
LspReferenceRead {} , -- Used for highlighting "read" references
|
||||||
LspReferenceWrite {} , -- Used for highlighting "write" references
|
LspReferenceWrite {} , -- Used for highlighting "write" references
|
||||||
LspCodeLens {} , -- Used to color the virtual text of the codelens. See |nvim_buf_set_extmark()|.
|
LspCodeLens {} , -- Used to color the virtual text of the codelens. See |nvim_buf_set_extmark()|.
|
||||||
LspCodeLensSeparator {} , -- Used to color the seperator between two or more code lens.
|
LspCodeLensSeparator {} , -- Used to color the seperator between two or more code lens.
|
||||||
LspSignatureActiveParameter { bold = true } , -- Used to highlight the active parameter in the signature help. See |vim.lsp.handlers.signature_help()|.
|
LspSignatureActiveParameter { bold = true } , -- Used to highlight the active parameter in the signature help. See |vim.lsp.handlers.signature_help()|.
|
||||||
|
|
||||||
DiagnosticError {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticError {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticWarn {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticWarn {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticInfo {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticInfo {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticHint {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticHint {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticVirtualTextError { fg = '#A54242' } , -- Used for "Error" diagnostic virtual text.
|
DiagnosticVirtualTextError { fg = '#A54242' } , -- Used for "Error" diagnostic virtual text.
|
||||||
DiagnosticVirtualTextWarn { fg = '#DE935F' } , -- Used for "Warn" diagnostic virtual text.
|
DiagnosticVirtualTextWarn { fg = '#DE935F' } , -- Used for "Warn" diagnostic virtual text.
|
||||||
DiagnosticVirtualTextInfo { fg = '#5F819D' } , -- Used for "Info" diagnostic virtual text.
|
DiagnosticVirtualTextInfo { fg = '#5F819D' } , -- Used for "Info" diagnostic virtual text.
|
||||||
DiagnosticVirtualTextHint { fg = '#777777' } , -- Used for "Hint" diagnostic virtual text.
|
DiagnosticVirtualTextHint { fg = '#777777' } , -- Used for "Hint" diagnostic virtual text.
|
||||||
DiagnosticUnderlineError { underline = true } , -- Used to underline "Error" diagnostics.
|
DiagnosticUnderlineError { underline = true } , -- Used to underline "Error" diagnostics.
|
||||||
DiagnosticUnderlineWarn { underline = true } , -- Used to underline "Warn" diagnostics.
|
DiagnosticUnderlineWarn { underline = true } , -- Used to underline "Warn" diagnostics.
|
||||||
DiagnosticUnderlineInfo { underline = true } , -- Used to underline "Info" diagnostics.
|
DiagnosticUnderlineInfo { underline = true } , -- Used to underline "Info" diagnostics.
|
||||||
DiagnosticUnderlineHint { underline = true } , -- Used to underline "Hint" diagnostics.
|
DiagnosticUnderlineHint { underline = true } , -- Used to underline "Hint" diagnostics.
|
||||||
DiagnosticFloatingError { DiagnosticVirtualTextError } , -- Used to color "Error" diagnostic messages in diagnostics float. See |vim.diagnostic.open_float()|
|
DiagnosticFloatingError { DiagnosticVirtualTextError } , -- Used to color "Error" diagnostic messages in diagnostics float. See |vim.diagnostic.open_float()|
|
||||||
DiagnosticFloatingWarn { DiagnosticVirtualTextWarn } , -- Used to color "Warn" diagnostic messages in diagnostics float.
|
DiagnosticFloatingWarn { DiagnosticVirtualTextWarn } , -- Used to color "Warn" diagnostic messages in diagnostics float.
|
||||||
DiagnosticFloatingInfo { DiagnosticVirtualTextInfo } , -- Used to color "Info" diagnostic messages in diagnostics float.
|
DiagnosticFloatingInfo { DiagnosticVirtualTextInfo } , -- Used to color "Info" diagnostic messages in diagnostics float.
|
||||||
DiagnosticFloatingHint { DiagnosticVirtualTextHint } , -- Used to color "Hint" diagnostic messages in diagnostics float.
|
DiagnosticFloatingHint { DiagnosticVirtualTextHint } , -- Used to color "Hint" diagnostic messages in diagnostics float.
|
||||||
DiagnosticSignError { DiagnosticVirtualTextError } , -- Used for "Error" signs in sign column.
|
DiagnosticSignError { DiagnosticVirtualTextError } , -- Used for "Error" signs in sign column.
|
||||||
DiagnosticSignWarn { DiagnosticVirtualTextWarn } , -- Used for "Warn" signs in sign column.
|
DiagnosticSignWarn { DiagnosticVirtualTextWarn } , -- Used for "Warn" signs in sign column.
|
||||||
DiagnosticSignInfo { DiagnosticVirtualTextInfo } , -- Used for "Info" signs in sign column.
|
DiagnosticSignInfo { DiagnosticVirtualTextInfo } , -- Used for "Info" signs in sign column.
|
||||||
DiagnosticSignHint { DiagnosticVirtualTextHint } , -- Used for "Hint" signs in sign column.
|
DiagnosticSignHint { DiagnosticVirtualTextHint } , -- Used for "Hint" signs in sign column.
|
||||||
|
|
||||||
-- lewis6991/gitsigns.nvim
|
-- lewis6991/gitsigns.nvim
|
||||||
GitSignsAdd { bg = '#328e30', fg = '#FFFFFF' },
|
GitSignsAdd { bg = '#328e30', fg = '#FFFFFF' },
|
||||||
GitSignsChange { bg = '#295493', fg = '#FFFFFF' },
|
GitSignsChange { bg = '#295493', fg = '#FFFFFF' },
|
||||||
GitSignsDelete { bg = '#af3140', fg = '#FFFFFF' },
|
GitSignsDelete { bg = '#af3140', fg = '#FFFFFF' },
|
||||||
GitSignsCurrentLineBlame { CursorLine, fg = '#81aeea' },
|
GitSignsCurrentLineBlame { CursorLine, fg = '#81aeea' },
|
||||||
|
|
||||||
-- lukas-reineke/indent-blankline.nvim
|
-- lukas-reineke/indent-blankline.nvim
|
||||||
IblIndent { fg = "#000000" },
|
IblIndent { fg = "#000000" },
|
||||||
|
|
||||||
-- RRethy/vim-illuminate
|
-- RRethy/vim-illuminate
|
||||||
IlluminatedWordText { bold = true },
|
IlluminatedWordText { bold = true },
|
||||||
IlluminatedWordRead { IlluminatedWordText },
|
IlluminatedWordRead { IlluminatedWordText },
|
||||||
IlluminatedWordWrite { IlluminatedWordText, underline = true },
|
IlluminatedWordWrite { IlluminatedWordText, underline = true },
|
||||||
|
|
||||||
-- For :Lushify to work, the groups have to be spelled as `sym` called
|
-- For :Lushify to work, the groups have to be spelled as `sym` called
|
||||||
-- on a string literal.
|
-- on a string literal.
|
||||||
|
|
||||||
-- These match the default highlight groups from regex highlighting.
|
-- These match the default highlight groups from regex highlighting.
|
||||||
sym"@text.literal" { Comment },
|
sym"@text.literal" { Comment },
|
||||||
sym"@text.reference" { Identifier },
|
sym"@text.reference" { Identifier },
|
||||||
sym"@text.title" { Title },
|
sym"@text.title" { Title },
|
||||||
sym"@text.uri" { Underlined },
|
sym"@text.uri" { Underlined },
|
||||||
sym"@text.underline" { Underlined },
|
sym"@text.underline" { Underlined },
|
||||||
sym"@text.todo" { Todo },
|
sym"@text.todo" { Todo },
|
||||||
sym"@comment" { Comment },
|
sym"@comment" { Comment },
|
||||||
sym"@punctuation" { Delimiter },
|
sym"@punctuation" { Delimiter },
|
||||||
sym"@constant" { Constant },
|
sym"@constant" { Constant },
|
||||||
sym"@constant.builtin" { Constant },
|
sym"@constant.builtin" { Constant },
|
||||||
sym"@constant.macro" { Define },
|
sym"@constant.macro" { Define },
|
||||||
sym"@define" { Define },
|
sym"@define" { Define },
|
||||||
sym"@macro" { Macro },
|
sym"@macro" { Macro },
|
||||||
sym"@string" { String },
|
sym"@string" { String },
|
||||||
sym"@string.escape" { SpecialChar },
|
sym"@string.escape" { SpecialChar },
|
||||||
sym"@string.special" { SpecialChar },
|
sym"@string.special" { SpecialChar },
|
||||||
sym"@character" { Character },
|
sym"@character" { Character },
|
||||||
sym"@character.special" { SpecialChar },
|
sym"@character.special" { SpecialChar },
|
||||||
sym"@number" { Number },
|
sym"@number" { Number },
|
||||||
sym"@boolean" { Boolean },
|
sym"@boolean" { Boolean },
|
||||||
sym"@float" { Float },
|
sym"@float" { Float },
|
||||||
sym"@function" { Function },
|
sym"@function" { Function },
|
||||||
sym"@function.builtin" { Function },
|
sym"@function.builtin" { Function },
|
||||||
sym"@function.macro" { Macro },
|
sym"@function.macro" { Macro },
|
||||||
sym"@parameter" { Identifier },
|
sym"@parameter" { Identifier },
|
||||||
sym"@method" { Function },
|
sym"@method" { Function },
|
||||||
sym"@field" { Identifier },
|
sym"@field" { Identifier },
|
||||||
sym"@property" { Identifier },
|
sym"@property" { Identifier },
|
||||||
sym"@constructor" { Special },
|
sym"@constructor" { Special },
|
||||||
sym"@conditional" { Conditional },
|
sym"@conditional" { Conditional },
|
||||||
sym"@repeat" { Repeat },
|
sym"@repeat" { Repeat },
|
||||||
sym"@label" { Label },
|
sym"@label" { Label },
|
||||||
sym"@operator" { Operator },
|
sym"@operator" { Operator },
|
||||||
sym"@keyword" { Keyword },
|
sym"@keyword" { Keyword },
|
||||||
sym"@exception" { Exception },
|
sym"@exception" { Exception },
|
||||||
sym"@variable" { Identifier },
|
sym"@variable" { Identifier },
|
||||||
sym"@type" { Type },
|
sym"@type" { Type },
|
||||||
sym"@type.definition" { Typedef },
|
sym"@type.definition" { Typedef },
|
||||||
sym"@storageclass" { StorageClass },
|
sym"@storageclass" { StorageClass },
|
||||||
sym"@structure" { Structure },
|
sym"@structure" { Structure },
|
||||||
sym"@namespace" { Identifier },
|
sym"@namespace" { Identifier },
|
||||||
sym"@include" { Include },
|
sym"@include" { Include },
|
||||||
sym"@preproc" { PreProc },
|
sym"@preproc" { PreProc },
|
||||||
sym"@debug" { Debug },
|
sym"@debug" { Debug },
|
||||||
|
|
||||||
-- These differ from regex highlighting. Sometimes this is an override,
|
-- These differ from regex highlighting. Sometimes this is an override,
|
||||||
-- and sometimes the equivalent base highlight group doesn't exist.
|
-- and sometimes the equivalent base highlight group doesn't exist.
|
||||||
sym"@tag" { Keyword },
|
sym"@tag" { Keyword },
|
||||||
sym"@tag.attribute" { Type },
|
sym"@tag.attribute" { Type },
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return theme
|
return theme
|
||||||
|
|
|
||||||
|
|
@ -1,210 +1,211 @@
|
||||||
local lush = require('lush')
|
local lush = require("lush")
|
||||||
local hsl = lush.hsl
|
local hsl = lush.hsl
|
||||||
|
|
||||||
local theme = lush(function(injected_functions)
|
local theme = lush(function(injected_functions)
|
||||||
-- Required alias for treesitter groups.
|
-- Required alias for treesitter groups.
|
||||||
-- https://github.com/rktjmp/lush.nvim/issues/109
|
-- https://github.com/rktjmp/lush.nvim/issues/109
|
||||||
local sym = injected_functions.sym
|
local sym = injected_functions.sym
|
||||||
|
|
||||||
return {
|
-- stylua: ignore
|
||||||
ColorColumn { bg = '#5F0000' }, -- Columns set with 'colorcolumn'
|
return {
|
||||||
Conceal {}, -- Placeholder characters substituted for concealed text (see 'conceallevel')
|
ColorColumn { bg = '#5F0000' }, -- Columns set with 'colorcolumn'
|
||||||
Cursor { reverse = true }, -- Character under the cursor
|
Conceal {}, -- Placeholder characters substituted for concealed text (see 'conceallevel')
|
||||||
lCursor {}, -- Character under the cursor when |language-mapping| is used (see 'guicursor')
|
Cursor { reverse = true }, -- Character under the cursor
|
||||||
CursorIM {}, -- Like Cursor, but used when in IME mode |CursorIM|
|
lCursor {}, -- Character under the cursor when |language-mapping| is used (see 'guicursor')
|
||||||
CursorLine { bg = '#eeeeee' }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
|
CursorIM {}, -- Like Cursor, but used when in IME mode |CursorIM|
|
||||||
CursorColumn { CursorLine }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
CursorLine { bg = '#eeeeee' }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.
|
||||||
Directory { fg = '#1B15FD' }, -- Directory names (and other special names in listings)
|
CursorColumn { CursorLine }, -- Screen-column at the cursor, when 'cursorcolumn' is set.
|
||||||
DiffAdd { bg = '#e5ffe5' }, -- Diff mode: Added line |diff.txt|
|
Directory { fg = '#1B15FD' }, -- Directory names (and other special names in listings)
|
||||||
DiffChange { bg = '#d8e7ff' }, -- Diff mode: Changed line |diff.txt|
|
DiffAdd { bg = '#e5ffe5' }, -- Diff mode: Added line |diff.txt|
|
||||||
DiffDelete { bg = '#ffe5e8' }, -- Diff mode: Deleted line |diff.txt|
|
DiffChange { bg = '#d8e7ff' }, -- Diff mode: Changed line |diff.txt|
|
||||||
DiffText { bg = '#b2cfff', bold = true }, -- Diff mode: Changed text within a changed line |diff.txt|
|
DiffDelete { bg = '#ffe5e8' }, -- Diff mode: Deleted line |diff.txt|
|
||||||
TermCursor { Cursor }, -- Cursor in a focused terminal
|
DiffText { bg = '#b2cfff', bold = true }, -- Diff mode: Changed text within a changed line |diff.txt|
|
||||||
TermCursorNC {}, -- Cursor in an unfocused terminal
|
TermCursor { Cursor }, -- Cursor in a focused terminal
|
||||||
ErrorMsg {}, -- Error messages on the command line
|
TermCursorNC {}, -- Cursor in an unfocused terminal
|
||||||
VertSplit { fg = '#C6C6C6' }, -- Column separating vertically split windows
|
ErrorMsg {}, -- Error messages on the command line
|
||||||
Folded {}, -- Line used for closed folds
|
VertSplit { fg = '#C6C6C6' }, -- Column separating vertically split windows
|
||||||
FoldColumn { fg = '#337ADA', bg = '#C6C6C6' }, -- 'foldcolumn'
|
Folded {}, -- Line used for closed folds
|
||||||
SignColumn { fg = '#000000', bg = '#C6C6C6' }, -- Column where |signs| are displayed
|
FoldColumn { fg = '#337ADA', bg = '#C6C6C6' }, -- 'foldcolumn'
|
||||||
LineNr { fg = '#a6a6a6' }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
SignColumn { fg = '#000000', bg = '#C6C6C6' }, -- Column where |signs| are displayed
|
||||||
CursorLineNr { fg = '#1B15FD' }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
LineNr { fg = '#a6a6a6' }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
|
||||||
MatchParen { fg = '#FF5F00' }, -- Character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
CursorLineNr { fg = '#1B15FD' }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
||||||
ModeMsg { bold = true }, -- 'showmode' message (e.g., "-- INSERT -- ")
|
MatchParen { fg = '#FF5F00' }, -- Character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|
|
||||||
MsgArea {}, -- Area for messages and cmdline
|
ModeMsg { bold = true }, -- 'showmode' message (e.g., "-- INSERT -- ")
|
||||||
MoreMsg { bold = true }, -- |more-prompt|
|
MsgArea {}, -- Area for messages and cmdline
|
||||||
NonText { fg = '#8EB1D5', bg = '#eeeeee' }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
MoreMsg { bold = true }, -- |more-prompt|
|
||||||
EndOfBuffer { fg = '#dddddd', bg = "#f8f8f8" }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
NonText { fg = '#8EB1D5', bg = '#eeeeee' }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
|
||||||
Normal { fg = "#000000" }, -- Normal text
|
EndOfBuffer { fg = '#dddddd', bg = "#f8f8f8" }, -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
||||||
NormalFloat { bg = "#eeeeee" }, -- Normal text in floating windows.
|
Normal { fg = "#000000" }, -- Normal text
|
||||||
NormalNC {}, -- normal text in non-current windows
|
NormalFloat { bg = "#eeeeee" }, -- Normal text in floating windows.
|
||||||
Pmenu { bg = "#eeeeee" }, -- Popup menu: Normal item.
|
NormalNC {}, -- normal text in non-current windows
|
||||||
PmenuSel { bg = "#cccccc" }, -- Popup menu: Selected item.
|
Pmenu { bg = "#eeeeee" }, -- Popup menu: Normal item.
|
||||||
PmenuSbar { bg = "#aaaaaa" }, -- Popup menu: Scrollbar.
|
PmenuSel { bg = "#cccccc" }, -- Popup menu: Selected item.
|
||||||
PmenuThumb { bg = "#000000" }, -- Popup menu: Thumb of the scrollbar.
|
PmenuSbar { bg = "#aaaaaa" }, -- Popup menu: Scrollbar.
|
||||||
Question { fg = '#005F00' }, -- |hit-enter| prompt and yes/no questions
|
PmenuThumb { bg = "#000000" }, -- Popup menu: Thumb of the scrollbar.
|
||||||
IncSearch { reverse = true }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
Question { fg = '#005F00' }, -- |hit-enter| prompt and yes/no questions
|
||||||
Search { fg = '#000000', bg = '#D7AF00' }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
IncSearch { reverse = true }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
||||||
QuickFixLine { Search }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
Search { fg = '#000000', bg = '#D7AF00' }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
||||||
Substitute { Search }, -- |:substitute| replacement text highlighting
|
QuickFixLine { Search }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
|
||||||
SpecialKey { fg = '#84D45F' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
|
Substitute { Search }, -- |:substitute| replacement text highlighting
|
||||||
SpellBad { underline = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
|
SpecialKey { fg = '#84D45F' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
|
||||||
SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
|
SpellBad { underline = true }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
|
||||||
SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
|
SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
|
||||||
SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
|
SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
|
||||||
StatusLine { fg = '#000000', bg = '#C6C6C6' }, -- Status line of current window
|
SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
|
||||||
StatusLineNC { fg = '#808080', bg = '#C6C6C6' }, -- Status lines of not-current windows. Note: If this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
|
StatusLine { fg = '#000000', bg = '#C6C6C6' }, -- Status line of current window
|
||||||
MsgSeparator { StatusLine }, -- Separator for scrolled messages, `msgsep` flag of 'display'
|
StatusLineNC { fg = '#808080', bg = '#C6C6C6' }, -- Status lines of not-current windows. Note: If this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
|
||||||
TabLine {}, -- Tab pages line, not active tab page label
|
MsgSeparator { StatusLine }, -- Separator for scrolled messages, `msgsep` flag of 'display'
|
||||||
TabLineFill {}, -- Tab pages line, where there are no labels
|
TabLine {}, -- Tab pages line, not active tab page label
|
||||||
TabLineSel {}, -- Tab pages line, active tab page label
|
TabLineFill {}, -- Tab pages line, where there are no labels
|
||||||
Title {}, -- Titles for output from ":set all", ":autocmd" etc.
|
TabLineSel {}, -- Tab pages line, active tab page label
|
||||||
Visual { reverse = true }, -- Visual mode selection
|
Title {}, -- Titles for output from ":set all", ":autocmd" etc.
|
||||||
VisualNOS {}, -- Visual mode selection when vim is "Not Owning the Selection".
|
Visual { reverse = true }, -- Visual mode selection
|
||||||
WarningMsg { fg = '#FFD700' }, -- Warning messages
|
VisualNOS {}, -- Visual mode selection when vim is "Not Owning the Selection".
|
||||||
Whitespace { fg = '#808080' }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
|
WarningMsg { fg = '#FFD700' }, -- Warning messages
|
||||||
Winseparator { VertSplit }, -- Separator between window splits. Inherts from |hl-VertSplit| by default, which it will replace eventually.
|
Whitespace { fg = '#808080' }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
|
||||||
WildMenu { fg = '#282A2E', bg = '#F0C674' }, -- Current match in 'wildmenu' completion
|
Winseparator { VertSplit }, -- Separator between window splits. Inherts from |hl-VertSplit| by default, which it will replace eventually.
|
||||||
|
WildMenu { fg = '#282A2E', bg = '#F0C674' }, -- Current match in 'wildmenu' completion
|
||||||
|
|
||||||
Comment { fg = '#666666' }, -- Any comment
|
Comment { fg = '#666666' }, -- Any comment
|
||||||
|
|
||||||
Constant { fg = '#876FFF' }, -- (*) Any constant
|
Constant { fg = '#876FFF' }, -- (*) Any constant
|
||||||
String { fg = '#005F00' }, -- A string constant: "this is a string"
|
String { fg = '#005F00' }, -- A string constant: "this is a string"
|
||||||
Character { Constant }, -- A character constant: 'c', '\n'
|
Character { Constant }, -- A character constant: 'c', '\n'
|
||||||
Number { fg = '#876FFF' }, -- A number constant: 234, 0xff
|
Number { fg = '#876FFF' }, -- A number constant: 234, 0xff
|
||||||
Boolean { Constant }, -- A boolean constant: TRUE, false
|
Boolean { Constant }, -- A boolean constant: TRUE, false
|
||||||
Float { Number }, -- A floating point constant: 2.3e10
|
Float { Number }, -- A floating point constant: 2.3e10
|
||||||
|
|
||||||
Identifier { Normal }, -- (*) Any variable name
|
Identifier { Normal }, -- (*) Any variable name
|
||||||
Function { fg = '#D75F00' }, -- Function name (also: methods for classes)
|
Function { fg = '#D75F00' }, -- Function name (also: methods for classes)
|
||||||
|
|
||||||
Statement { fg = '#880000' }, -- (*) Any statement
|
Statement { fg = '#880000' }, -- (*) Any statement
|
||||||
Conditional { Statement }, -- if, then, else, endif, switch, etc.
|
Conditional { Statement }, -- if, then, else, endif, switch, etc.
|
||||||
Repeat { Statement }, -- for, do, while, etc.
|
Repeat { Statement }, -- for, do, while, etc.
|
||||||
Label { Statement }, -- case, default, etc.
|
Label { Statement }, -- case, default, etc.
|
||||||
Operator { Statement }, -- "sizeof", "+", "*", etc.
|
Operator { Statement }, -- "sizeof", "+", "*", etc.
|
||||||
Keyword { Statement }, -- any other keyword
|
Keyword { Statement }, -- any other keyword
|
||||||
Exception { Statement }, -- try, catch, throw
|
Exception { Statement }, -- try, catch, throw
|
||||||
|
|
||||||
PreProc { Statement }, -- (*) Generic Preprocessor
|
PreProc { Statement }, -- (*) Generic Preprocessor
|
||||||
Include { Statement }, -- Preprocessor #include
|
Include { Statement }, -- Preprocessor #include
|
||||||
Define { Statement }, -- Preprocessor #define
|
Define { Statement }, -- Preprocessor #define
|
||||||
Macro { Statement }, -- Same as Define
|
Macro { Statement }, -- Same as Define
|
||||||
PreCondit { Statement }, -- Preprocessor #if, #else, #endif, etc.
|
PreCondit { Statement }, -- Preprocessor #if, #else, #endif, etc.
|
||||||
|
|
||||||
Type { fg = '#8700D7' }, -- (*) int, long, char, etc.
|
Type { fg = '#8700D7' }, -- (*) int, long, char, etc.
|
||||||
StorageClass { Type }, -- static, register, volatile, etc.
|
StorageClass { Type }, -- static, register, volatile, etc.
|
||||||
Structure { Type }, -- struct, union, enum, etc.
|
Structure { Type }, -- struct, union, enum, etc.
|
||||||
Typedef { Type }, -- A typedef
|
Typedef { Type }, -- A typedef
|
||||||
|
|
||||||
Special { fg = '#000000' }, -- (*) Any special symbol
|
Special { fg = '#000000' }, -- (*) Any special symbol
|
||||||
SpecialChar { Special }, -- Special character in a constant
|
SpecialChar { Special }, -- Special character in a constant
|
||||||
Tag { Special }, -- You can use CTRL-] on this
|
Tag { Special }, -- You can use CTRL-] on this
|
||||||
Delimiter { Special }, -- Character that needs attention
|
Delimiter { Special }, -- Character that needs attention
|
||||||
SpecialComment { Special }, -- Special things inside a comment (e.g. '\n')
|
SpecialComment { Special }, -- Special things inside a comment (e.g. '\n')
|
||||||
Debug { Special }, -- Debugging statements
|
Debug { Special }, -- Debugging statements
|
||||||
|
|
||||||
Underlined { gui = "underline" }, -- Text that stands out, HTML links
|
Underlined { gui = "underline" }, -- Text that stands out, HTML links
|
||||||
Ignore { fg = '#E4E4E4' }, -- Left blank, hidden |hl-Ignore| (NOTE: May be invisible here in template)
|
Ignore { fg = '#E4E4E4' }, -- Left blank, hidden |hl-Ignore| (NOTE: May be invisible here in template)
|
||||||
Error { fg = '#000000', bg = '#FF5F00' }, -- Any erroneous construct
|
Error { fg = '#000000', bg = '#FF5F00' }, -- Any erroneous construct
|
||||||
Todo { fg = '#FF0000' }, -- Anything that needs extra attention; mostly the keywords TODO FIXME and XXX
|
Todo { fg = '#FF0000' }, -- Anything that needs extra attention; mostly the keywords TODO FIXME and XXX
|
||||||
|
|
||||||
LspInlayHint { Comment },
|
LspInlayHint { Comment },
|
||||||
LspReferenceText {} , -- Used for highlighting "text" references
|
LspReferenceText {} , -- Used for highlighting "text" references
|
||||||
LspReferenceRead {} , -- Used for highlighting "read" references
|
LspReferenceRead {} , -- Used for highlighting "read" references
|
||||||
LspReferenceWrite {} , -- Used for highlighting "write" references
|
LspReferenceWrite {} , -- Used for highlighting "write" references
|
||||||
LspCodeLens {} , -- Used to color the virtual text of the codelens. See |nvim_buf_set_extmark()|.
|
LspCodeLens {} , -- Used to color the virtual text of the codelens. See |nvim_buf_set_extmark()|.
|
||||||
LspCodeLensSeparator {} , -- Used to color the seperator between two or more code lens.
|
LspCodeLensSeparator {} , -- Used to color the seperator between two or more code lens.
|
||||||
LspSignatureActiveParameter { bold = true } , -- Used to highlight the active parameter in the signature help. See |vim.lsp.handlers.signature_help()|.
|
LspSignatureActiveParameter { bold = true } , -- Used to highlight the active parameter in the signature help. See |vim.lsp.handlers.signature_help()|.
|
||||||
|
|
||||||
DiagnosticError {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticError {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticWarn {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticWarn {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticInfo {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticInfo {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticHint {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
DiagnosticHint {} , -- Used as the base highlight group. Other Diagnostic highlights link to this by default (except Underline)
|
||||||
DiagnosticVirtualTextError { fg = '#F32840'} , -- Used for "Error" diagnostic virtual text.
|
DiagnosticVirtualTextError { fg = '#F32840'} , -- Used for "Error" diagnostic virtual text.
|
||||||
DiagnosticVirtualTextWarn { fg = '#F06D14'} , -- Used for "Warn" diagnostic virtual text.
|
DiagnosticVirtualTextWarn { fg = '#F06D14'} , -- Used for "Warn" diagnostic virtual text.
|
||||||
DiagnosticVirtualTextInfo { fg = '#4E85DA'} , -- Used for "Info" diagnostic virtual text.
|
DiagnosticVirtualTextInfo { fg = '#4E85DA'} , -- Used for "Info" diagnostic virtual text.
|
||||||
DiagnosticVirtualTextHint { fg = '#015F00'} , -- Used for "Hint" diagnostic virtual text.
|
DiagnosticVirtualTextHint { fg = '#015F00'} , -- Used for "Hint" diagnostic virtual text.
|
||||||
DiagnosticUnderlineError { underline = true } , -- Used to underline "Error" diagnostics.
|
DiagnosticUnderlineError { underline = true } , -- Used to underline "Error" diagnostics.
|
||||||
DiagnosticUnderlineWarn { underline = true } , -- Used to underline "Warn" diagnostics.
|
DiagnosticUnderlineWarn { underline = true } , -- Used to underline "Warn" diagnostics.
|
||||||
DiagnosticUnderlineInfo { underline = true } , -- Used to underline "Info" diagnostics.
|
DiagnosticUnderlineInfo { underline = true } , -- Used to underline "Info" diagnostics.
|
||||||
DiagnosticUnderlineHint { underline = true } , -- Used to underline "Hint" diagnostics.
|
DiagnosticUnderlineHint { underline = true } , -- Used to underline "Hint" diagnostics.
|
||||||
DiagnosticFloatingError { DiagnosticVirtualTextError } , -- Used to color "Error" diagnostic messages in diagnostics float. See |vim.diagnostic.open_float()|
|
DiagnosticFloatingError { DiagnosticVirtualTextError } , -- Used to color "Error" diagnostic messages in diagnostics float. See |vim.diagnostic.open_float()|
|
||||||
DiagnosticFloatingWarn { DiagnosticVirtualTextWarn } , -- Used to color "Warn" diagnostic messages in diagnostics float.
|
DiagnosticFloatingWarn { DiagnosticVirtualTextWarn } , -- Used to color "Warn" diagnostic messages in diagnostics float.
|
||||||
DiagnosticFloatingInfo { DiagnosticVirtualTextInfo } , -- Used to color "Info" diagnostic messages in diagnostics float.
|
DiagnosticFloatingInfo { DiagnosticVirtualTextInfo } , -- Used to color "Info" diagnostic messages in diagnostics float.
|
||||||
DiagnosticFloatingHint { DiagnosticVirtualTextHint } , -- Used to color "Hint" diagnostic messages in diagnostics float.
|
DiagnosticFloatingHint { DiagnosticVirtualTextHint } , -- Used to color "Hint" diagnostic messages in diagnostics float.
|
||||||
DiagnosticSignError { DiagnosticVirtualTextError } , -- Used for "Error" signs in sign column.
|
DiagnosticSignError { DiagnosticVirtualTextError } , -- Used for "Error" signs in sign column.
|
||||||
DiagnosticSignWarn { DiagnosticVirtualTextWarn } , -- Used for "Warn" signs in sign column.
|
DiagnosticSignWarn { DiagnosticVirtualTextWarn } , -- Used for "Warn" signs in sign column.
|
||||||
DiagnosticSignInfo { DiagnosticVirtualTextInfo } , -- Used for "Info" signs in sign column.
|
DiagnosticSignInfo { DiagnosticVirtualTextInfo } , -- Used for "Info" signs in sign column.
|
||||||
DiagnosticSignHint { DiagnosticVirtualTextHint } , -- Used for "Hint" signs in sign column.
|
DiagnosticSignHint { DiagnosticVirtualTextHint } , -- Used for "Hint" signs in sign column.
|
||||||
|
|
||||||
-- lewis6991/gitsigns.nvim
|
-- lewis6991/gitsigns.nvim
|
||||||
GitSignsAdd { bg = '#90d68f', fg = '#FFFFFF' },
|
GitSignsAdd { bg = '#90d68f', fg = '#FFFFFF' },
|
||||||
GitSignsChange { bg = '#80abed', fg = '#FFFFFF' },
|
GitSignsChange { bg = '#80abed', fg = '#FFFFFF' },
|
||||||
GitSignsDelete { bg = '#f9acb5', fg = '#FFFFFF' },
|
GitSignsDelete { bg = '#f9acb5', fg = '#FFFFFF' },
|
||||||
GitSignsCurrentLineBlame { CursorLine, fg = '#337ADA' },
|
GitSignsCurrentLineBlame { CursorLine, fg = '#337ADA' },
|
||||||
|
|
||||||
-- lukas-reineke/indent-blankline.nvim
|
-- lukas-reineke/indent-blankline.nvim
|
||||||
IblIndent { fg = "#eeeeee" },
|
IblIndent { fg = "#eeeeee" },
|
||||||
|
|
||||||
-- RRethy/vim-illuminate
|
-- RRethy/vim-illuminate
|
||||||
IlluminatedWordText { bold = true },
|
IlluminatedWordText { bold = true },
|
||||||
IlluminatedWordRead { IlluminatedWordText },
|
IlluminatedWordRead { IlluminatedWordText },
|
||||||
IlluminatedWordWrite { IlluminatedWordText, underline = true },
|
IlluminatedWordWrite { IlluminatedWordText, underline = true },
|
||||||
|
|
||||||
-- For :Lushify to work, the groups have to be spelled as `sym` called
|
-- For :Lushify to work, the groups have to be spelled as `sym` called
|
||||||
-- on a string literal.
|
-- on a string literal.
|
||||||
|
|
||||||
-- These match the default highlight groups from regex highlighting.
|
-- These match the default highlight groups from regex highlighting.
|
||||||
sym"@text.literal" { Comment },
|
sym"@text.literal" { Comment },
|
||||||
sym"@text.reference" { Identifier },
|
sym"@text.reference" { Identifier },
|
||||||
sym"@text.title" { Title },
|
sym"@text.title" { Title },
|
||||||
sym"@text.uri" { Underlined },
|
sym"@text.uri" { Underlined },
|
||||||
sym"@text.underline" { Underlined },
|
sym"@text.underline" { Underlined },
|
||||||
sym"@text.todo" { Todo },
|
sym"@text.todo" { Todo },
|
||||||
sym"@comment" { Comment },
|
sym"@comment" { Comment },
|
||||||
sym"@punctuation" { Delimiter },
|
sym"@punctuation" { Delimiter },
|
||||||
sym"@constant" { Constant },
|
sym"@constant" { Constant },
|
||||||
sym"@constant.builtin" { Constant },
|
sym"@constant.builtin" { Constant },
|
||||||
sym"@constant.macro" { Define },
|
sym"@constant.macro" { Define },
|
||||||
sym"@define" { Define },
|
sym"@define" { Define },
|
||||||
sym"@macro" { Macro },
|
sym"@macro" { Macro },
|
||||||
sym"@string" { String },
|
sym"@string" { String },
|
||||||
sym"@string.escape" { SpecialChar },
|
sym"@string.escape" { SpecialChar },
|
||||||
sym"@string.special" { SpecialChar },
|
sym"@string.special" { SpecialChar },
|
||||||
sym"@character" { Character },
|
sym"@character" { Character },
|
||||||
sym"@character.special" { SpecialChar },
|
sym"@character.special" { SpecialChar },
|
||||||
sym"@number" { Number },
|
sym"@number" { Number },
|
||||||
sym"@boolean" { Boolean },
|
sym"@boolean" { Boolean },
|
||||||
sym"@float" { Float },
|
sym"@float" { Float },
|
||||||
sym"@function" { Function },
|
sym"@function" { Function },
|
||||||
sym"@function.builtin" { Function },
|
sym"@function.builtin" { Function },
|
||||||
sym"@function.macro" { Macro },
|
sym"@function.macro" { Macro },
|
||||||
sym"@parameter" { Identifier },
|
sym"@parameter" { Identifier },
|
||||||
sym"@method" { Function },
|
sym"@method" { Function },
|
||||||
sym"@field" { Identifier },
|
sym"@field" { Identifier },
|
||||||
sym"@property" { Identifier },
|
sym"@property" { Identifier },
|
||||||
sym"@constructor" { Special },
|
sym"@constructor" { Special },
|
||||||
sym"@conditional" { Conditional },
|
sym"@conditional" { Conditional },
|
||||||
sym"@repeat" { Repeat },
|
sym"@repeat" { Repeat },
|
||||||
sym"@label" { Label },
|
sym"@label" { Label },
|
||||||
sym"@operator" { Operator },
|
sym"@operator" { Operator },
|
||||||
sym"@keyword" { Keyword },
|
sym"@keyword" { Keyword },
|
||||||
sym"@exception" { Exception },
|
sym"@exception" { Exception },
|
||||||
sym"@variable" { Identifier },
|
sym"@variable" { Identifier },
|
||||||
sym"@type" { Type },
|
sym"@type" { Type },
|
||||||
sym"@type.definition" { Typedef },
|
sym"@type.definition" { Typedef },
|
||||||
sym"@storageclass" { StorageClass },
|
sym"@storageclass" { StorageClass },
|
||||||
sym"@structure" { Structure },
|
sym"@structure" { Structure },
|
||||||
sym"@namespace" { Identifier },
|
sym"@namespace" { Identifier },
|
||||||
sym"@include" { Include },
|
sym"@include" { Include },
|
||||||
sym"@preproc" { PreProc },
|
sym"@preproc" { PreProc },
|
||||||
sym"@debug" { Debug },
|
sym"@debug" { Debug },
|
||||||
|
|
||||||
-- These differ from regex highlighting. Sometimes this is an override,
|
-- These differ from regex highlighting. Sometimes this is an override,
|
||||||
-- and sometimes the equivalent base highlight group doesn't exist.
|
-- and sometimes the equivalent base highlight group doesn't exist.
|
||||||
sym"@tag" { Keyword },
|
sym"@tag" { Keyword },
|
||||||
sym"@tag.attribute" { Type },
|
sym"@tag.attribute" { Type },
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return theme
|
return theme
|
||||||
|
|
|
||||||
|
|
@ -1,165 +1,165 @@
|
||||||
return {
|
return {
|
||||||
-- Theme
|
-- Theme
|
||||||
'rktjmp/lush.nvim',
|
"rktjmp/lush.nvim",
|
||||||
|
|
||||||
-- tpope extended universe
|
-- tpope extended universe
|
||||||
"tpope/vim-abolish",
|
"tpope/vim-abolish",
|
||||||
"tpope/vim-commentary",
|
"tpope/vim-commentary",
|
||||||
"tpope/vim-endwise",
|
"tpope/vim-endwise",
|
||||||
"tpope/vim-repeat",
|
"tpope/vim-repeat",
|
||||||
{ "kylechui/nvim-surround", config = true },
|
{ "kylechui/nvim-surround", config = true },
|
||||||
{
|
{
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<Space>G", ":Git<Space>", mode = "n" },
|
{ "<Space>G", ":Git<Space>", mode = "n" },
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
"tummetott/unimpaired.nvim",
|
{
|
||||||
opts = {
|
"tummetott/unimpaired.nvim",
|
||||||
keymaps = {
|
opts = {
|
||||||
-- Tags
|
keymaps = {
|
||||||
tprevious = false,
|
-- Tags
|
||||||
tnext = false,
|
tprevious = false,
|
||||||
tfirst = false,
|
tnext = false,
|
||||||
tlast = false,
|
tfirst = false,
|
||||||
ptprevious = false,
|
tlast = false,
|
||||||
ptnext = false,
|
ptprevious = false,
|
||||||
|
ptnext = false,
|
||||||
|
|
||||||
-- Files
|
-- Files
|
||||||
previous_file = false,
|
previous_file = false,
|
||||||
next_file = false,
|
next_file = false,
|
||||||
|
|
||||||
-- Settings
|
-- Settings
|
||||||
enable_cursorline = false,
|
enable_cursorline = false,
|
||||||
disable_cursorline = false,
|
disable_cursorline = false,
|
||||||
toggle_cursorline = false,
|
toggle_cursorline = false,
|
||||||
enable_diff = false,
|
enable_diff = false,
|
||||||
disable_diff = false,
|
disable_diff = false,
|
||||||
toggle_diff = false,
|
toggle_diff = false,
|
||||||
enable_hlsearch = false,
|
enable_hlsearch = false,
|
||||||
disable_hlsearch = false,
|
disable_hlsearch = false,
|
||||||
toggle_hlsearch = false,
|
toggle_hlsearch = false,
|
||||||
enable_ignorecase = false,
|
enable_ignorecase = false,
|
||||||
disable_ignorecase = false,
|
disable_ignorecase = false,
|
||||||
toggle_ignorecase = false,
|
toggle_ignorecase = false,
|
||||||
enable_list = false,
|
enable_list = false,
|
||||||
disable_list = false,
|
disable_list = false,
|
||||||
toggle_list = false,
|
toggle_list = false,
|
||||||
enable_number = false,
|
enable_number = false,
|
||||||
disable_number = false,
|
disable_number = false,
|
||||||
toggle_number = false,
|
toggle_number = false,
|
||||||
enable_relativenumber = false,
|
enable_relativenumber = false,
|
||||||
disable_relativenumber = false,
|
disable_relativenumber = false,
|
||||||
toggle_relativenumber = false,
|
toggle_relativenumber = false,
|
||||||
enable_spell = false,
|
enable_spell = false,
|
||||||
disable_spell = false,
|
disable_spell = false,
|
||||||
toggle_spell = false,
|
toggle_spell = false,
|
||||||
enable_background = false,
|
enable_background = false,
|
||||||
disable_background = false,
|
disable_background = false,
|
||||||
toggle_background = false,
|
toggle_background = false,
|
||||||
enable_colorcolumn = false,
|
enable_colorcolumn = false,
|
||||||
disable_colorcolumn = false,
|
disable_colorcolumn = false,
|
||||||
toggle_colorcolumn = false,
|
toggle_colorcolumn = false,
|
||||||
enable_cursorcolumn = false,
|
enable_cursorcolumn = false,
|
||||||
disable_cursorcolumn = false,
|
disable_cursorcolumn = false,
|
||||||
toggle_cursorcolumn = false,
|
toggle_cursorcolumn = false,
|
||||||
enable_virtualedit = false,
|
enable_virtualedit = false,
|
||||||
disable_virtualedit = false,
|
disable_virtualedit = false,
|
||||||
toggle_virtualedit = false,
|
toggle_virtualedit = false,
|
||||||
enable_wrap = false,
|
enable_wrap = false,
|
||||||
disable_wrap = false,
|
disable_wrap = false,
|
||||||
toggle_wrap = false,
|
toggle_wrap = false,
|
||||||
enable_cursorcross = false,
|
enable_cursorcross = false,
|
||||||
disable_cursorcross = false,
|
disable_cursorcross = false,
|
||||||
toggle_cursorcross = false,
|
toggle_cursorcross = false,
|
||||||
}
|
},
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
|
||||||
-- etc.
|
-- etc.
|
||||||
"MarcWeber/vim-addon-local-vimrc",
|
"MarcWeber/vim-addon-local-vimrc",
|
||||||
"qpkorr/vim-bufkill",
|
"qpkorr/vim-bufkill",
|
||||||
{
|
{
|
||||||
"almo7aya/openingh.nvim",
|
"almo7aya/openingh.nvim",
|
||||||
url = "https://github.com/jdkaplan/openingh.nvim",
|
url = "https://github.com/jdkaplan/openingh.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<Leader>gh", "V:OpenInGHFile<CR>", mode = {"n"} },
|
{ "<Leader>gh", "V:OpenInGHFile<CR>", mode = { "n" } },
|
||||||
{ "<Leader>gh", ":OpenInGHFile<CR>", mode = {"v"} },
|
{ "<Leader>gh", ":OpenInGHFile<CR>", mode = { "v" } },
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
"junegunn/vim-easy-align",
|
{
|
||||||
keys = {
|
"junegunn/vim-easy-align",
|
||||||
{ "ga", "<Plug>(EasyAlign)", mode = "x" },
|
keys = {
|
||||||
{ "ga", "<Plug>(EasyAlign)", mode = "n" },
|
{ "ga", "<Plug>(EasyAlign)", mode = "x" },
|
||||||
},
|
{ "ga", "<Plug>(EasyAlign)", mode = "n" },
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
"ntpeters/vim-better-whitespace",
|
{
|
||||||
init = function()
|
"ntpeters/vim-better-whitespace",
|
||||||
vim.g.better_whitespace_enabled = 1
|
init = function()
|
||||||
vim.g.better_whitespace_filetypes_blacklist = { 'diff', 'zig' }
|
vim.g.better_whitespace_enabled = 1
|
||||||
vim.g.strip_whitespace_on_save = 1
|
vim.g.better_whitespace_filetypes_blacklist = { "diff", "zig" }
|
||||||
vim.g.strip_whitespace_confirm = 0
|
vim.g.strip_whitespace_on_save = 1
|
||||||
vim.g.better_whitespace_operator = ''
|
vim.g.strip_whitespace_confirm = 0
|
||||||
|
vim.g.better_whitespace_operator = ""
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"windwp/nvim-autopairs",
|
||||||
|
opts = {
|
||||||
|
map_cr = true,
|
||||||
|
enable_moveright = true,
|
||||||
|
enable_check_bracket_line = false,
|
||||||
|
check_ts = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
preset = "helix",
|
||||||
|
keys = {
|
||||||
|
Up = " ",
|
||||||
|
Down = " ",
|
||||||
|
Left = " ",
|
||||||
|
Right = " ",
|
||||||
|
C = "^",
|
||||||
|
M = "M-",
|
||||||
|
D = "W-",
|
||||||
|
S = "S-",
|
||||||
|
CR = "CR",
|
||||||
|
Esc = "Esc",
|
||||||
|
ScrollWheelDown = "⤓",
|
||||||
|
ScrollWheelUp = "⤒",
|
||||||
|
NL = "⏎",
|
||||||
|
BS = "⇐",
|
||||||
|
Space = "Space",
|
||||||
|
Tab = "Tab",
|
||||||
|
F1 = "F1",
|
||||||
|
F2 = "F2",
|
||||||
|
F3 = "F3",
|
||||||
|
F4 = "F4",
|
||||||
|
F5 = "F5",
|
||||||
|
F6 = "F6",
|
||||||
|
F7 = "F7",
|
||||||
|
F8 = "F8",
|
||||||
|
F9 = "F9",
|
||||||
|
F10 = "F10",
|
||||||
|
F11 = "F11",
|
||||||
|
F12 = "F12",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>?",
|
||||||
|
function()
|
||||||
|
require("which-key").show({ global = false })
|
||||||
end,
|
end,
|
||||||
|
desc = "Buffer Local Keymaps (which-key)",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
opts = {
|
|
||||||
map_cr = true,
|
|
||||||
enable_moveright = true,
|
|
||||||
enable_check_bracket_line = false,
|
|
||||||
check_ts = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"folke/which-key.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
opts = {
|
|
||||||
preset = "helix",
|
|
||||||
keys = {
|
|
||||||
Up = " ",
|
|
||||||
Down = " ",
|
|
||||||
Left = " ",
|
|
||||||
Right = " ",
|
|
||||||
C = "^",
|
|
||||||
M = "M-",
|
|
||||||
D = "W-",
|
|
||||||
S = "S-",
|
|
||||||
CR = "CR",
|
|
||||||
Esc = "Esc",
|
|
||||||
ScrollWheelDown = "⤓",
|
|
||||||
ScrollWheelUp = "⤒",
|
|
||||||
NL = "⏎",
|
|
||||||
BS = "⇐",
|
|
||||||
Space = "Space",
|
|
||||||
Tab = "Tab",
|
|
||||||
F1 = "F1",
|
|
||||||
F2 = "F2",
|
|
||||||
F3 = "F3",
|
|
||||||
F4 = "F4",
|
|
||||||
F5 = "F5",
|
|
||||||
F6 = "F6",
|
|
||||||
F7 = "F7",
|
|
||||||
F8 = "F8",
|
|
||||||
F9 = "F9",
|
|
||||||
F10 = "F10",
|
|
||||||
F11 = "F11",
|
|
||||||
F12 = "F12",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>?",
|
|
||||||
function()
|
|
||||||
require("which-key").show({ global = false })
|
|
||||||
end,
|
|
||||||
desc = "Buffer Local Keymaps (which-key)",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,14 +1,14 @@
|
||||||
local snippets = {
|
local snippets = {
|
||||||
-- const [show, setShow] = useState(false);
|
-- const [show, setShow] = useState(false);
|
||||||
s("rstate", {
|
s("rstate", {
|
||||||
t("const ["),
|
t("const ["),
|
||||||
i(1),
|
i(1),
|
||||||
t(","),
|
t(","),
|
||||||
l(l._1:gsub("^%l", string.upper):gsub("^", "set"), 1),
|
l(l._1:gsub("^%l", string.upper):gsub("^", "set"), 1),
|
||||||
t("] = useState("),
|
t("] = useState("),
|
||||||
i(0),
|
i(0),
|
||||||
t(");"),
|
t(");"),
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
local autosnippets = {}
|
local autosnippets = {}
|
||||||
|
|
|
||||||
3
neovim/stylua.toml
Normal file
3
neovim/stylua.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
call_parentheses = "Input"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue