Update config
This commit is contained in:
parent
09a6455af5
commit
958eb8c791
@ -34,6 +34,10 @@ vim.api.nvim_set_keymap('i', '<C-A-S-k>', '<Esc>:t.-1<CR>i', { noremap = true, s
|
|||||||
vim.api.nvim_set_keymap('i', '<C-A-S-j>', '<Esc>:t.<CR>i', { noremap = true, silent = true })
|
vim.api.nvim_set_keymap('i', '<C-A-S-j>', '<Esc>:t.<CR>i', { noremap = true, silent = true })
|
||||||
|
|
||||||
|
|
||||||
|
-- Keep selection in visual mode when indenting
|
||||||
|
vim.api.nvim_set_keymap('v', '<', '<gv', { noremap = true, silent = true })
|
||||||
|
vim.api.nvim_set_keymap('v', '>', '>gv', { noremap = true, silent = true })
|
||||||
|
|
||||||
|
|
||||||
-- Save shortcut
|
-- Save shortcut
|
||||||
keymap.set("i", "<C-s>", "<Esc>:w<CR>a", opts("Save file (shortcut)"))
|
keymap.set("i", "<C-s>", "<Esc>:w<CR>a", opts("Save file (shortcut)"))
|
||||||
|
@ -4,107 +4,134 @@ return {
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
-- local Shade = require("nightfox.lib.shade")
|
local Shade = require("nightfox.lib.shade")
|
||||||
require("nightfox").setup({
|
require("nightfox").setup({
|
||||||
options = {
|
options = {
|
||||||
transparent = true,
|
transparent = true,
|
||||||
|
styles = {
|
||||||
|
comments = "italic",
|
||||||
|
functions = "italic",
|
||||||
|
keywords = "italic",
|
||||||
|
types = "italic",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
palettes = {
|
||||||
|
all = {
|
||||||
|
black = Shade.new("#404944", 0.15, -0.15),
|
||||||
|
gray = Shade.new("#505050", 0.15, -0.15),
|
||||||
|
white = Shade.new("#dee4df", 0.15, -0.15),
|
||||||
|
red = Shade.new("#ff6060", 0.15, -0.15),
|
||||||
|
darkred = Shade.new("#903030", 0.15, -0.15),
|
||||||
|
strongred = Shade.new("#bb0000", 0.15, -0.15),
|
||||||
|
orange = Shade.new("#ce8c14", 0.15, -0.15),
|
||||||
|
green = Shade.new("#a3d397", 0.10, -0.15),
|
||||||
|
darkgreen = Shade.new("#005602", 0.10, -0.15),
|
||||||
|
darkyellow = Shade.new("#dfd100", 0.10, -0.15),
|
||||||
|
yellow = Shade.new("#e3c46d", 0.15, -0.15),
|
||||||
|
darkblue = Shade.new("#1010aa", 0.15, -0.15),
|
||||||
|
blue = Shade.new("#7070dd", 0.15, -0.15),
|
||||||
|
magenta = Shade.new("#C02490", 0.30, -0.15),
|
||||||
|
pink = Shade.new("#ff82c2", 0.15, -0.15),
|
||||||
|
purple = Shade.new("#761464", 0.15, -0.15),
|
||||||
|
cyan = Shade.new("#7ac9ff", 0.15, -0.15),
|
||||||
|
lightblue = Shade.new("#5c77ff", 0.15, -0.15),
|
||||||
|
softblue = Shade.new("#10ddff", 0.15, -0.15),
|
||||||
|
brown = Shade.new("#553200", 0.15, -0.15),
|
||||||
|
|
||||||
|
bg0 = "#0f1512", -- Dark bg (status line and float)
|
||||||
|
bg1 = "#0f1512", -- Default bg
|
||||||
|
bg2 = "#1b211e", -- Lighter bg (colorcolm folds)
|
||||||
|
bg3 = "#252b28", -- Lighter bg (cursor line)
|
||||||
|
bg4 = "#303633", -- Conceal, border fg
|
||||||
|
|
||||||
|
fg0 = "#dee4df", -- Lighter fg
|
||||||
|
fg1 = "#dee4df", -- Default fg
|
||||||
|
fg2 = "#dee4df", -- Darker fg (status line)
|
||||||
|
fg3 = "#89938d", -- Darker fg (line numbers, fold colums)
|
||||||
|
|
||||||
|
sel0 = "#404944", -- Popup bg, visual selection
|
||||||
|
sel1 = "#00513b", -- Popup sel bg, search bg
|
||||||
|
|
||||||
|
comment = "#89938d",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
specs = {
|
specs = {
|
||||||
carbonfox = {
|
carbonfox = {
|
||||||
comment = { fg = "#070707", italic = true },
|
syntax = {
|
||||||
|
comment = "comment",
|
||||||
|
bracket = "darkyellow",
|
||||||
|
builtin0 = "softblue",
|
||||||
|
builtin1 = "sel0",
|
||||||
|
builtin2 = "sel1",
|
||||||
|
conditional = "darkblue",
|
||||||
|
const = "gray",
|
||||||
|
dep = "darkred",
|
||||||
|
field = "green",
|
||||||
|
func = "pink",
|
||||||
|
ident = "darkgreen",
|
||||||
|
keyword = "blue",
|
||||||
|
number = "yellow",
|
||||||
|
operator = "white",
|
||||||
|
preproc = "strongred",
|
||||||
|
regex = "purple",
|
||||||
|
statement = "magenta",
|
||||||
|
string = "cyan",
|
||||||
|
type = "red",
|
||||||
|
variable = "orange"
|
||||||
|
},
|
||||||
|
diag = {
|
||||||
|
error = "darkred",
|
||||||
|
warn = "yellow",
|
||||||
|
info = "lightblue",
|
||||||
|
hint = "fg3",
|
||||||
|
ok = "darkgreen",
|
||||||
|
},
|
||||||
|
diag_bg = {
|
||||||
|
error = "red",
|
||||||
|
warn = "#a16b00",
|
||||||
|
info = "cyan",
|
||||||
|
hint = "bg3",
|
||||||
|
ok = "green";
|
||||||
|
},
|
||||||
|
diff = {
|
||||||
|
add = "darkgreen",
|
||||||
|
delete = "darkred",
|
||||||
|
changed = "lightblue",
|
||||||
|
text = "fg0"
|
||||||
|
},
|
||||||
|
git = {
|
||||||
|
add = "darkgreen",
|
||||||
|
removed = "darkred",
|
||||||
|
changed = "lightblue",
|
||||||
|
conflict = "orange",
|
||||||
|
ignored = "gray"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {
|
groups = {
|
||||||
carbonfox = {
|
all = {
|
||||||
bracket = { fg = "#FFFFFF" },
|
Cursor = { fg = "palette.white", bg = "palette.lightblue" }, -- character under the cursor
|
||||||
builtin0 = { fg = "" },
|
WinSeparator = { fg = "palette.bg2" }, -- the column separating vertically split windows
|
||||||
builtin1 = { fg = "" },
|
EndOfBuffer = { link = "WinSeparator" }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
||||||
builtin2 = { fg = "" },
|
CursorLine = { bg = "palette.bg1" },
|
||||||
|
CursorLineNr = { fg = "palette.cyan", style = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
||||||
|
Search = { fg = "palette.lightblue", bg = "#00513b" }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
||||||
|
IncSearch = { fg = "palette.lightblue", bg = "#1a6b51" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
||||||
|
ModeMsg = { fg = "palette.bg3", style = "bold" }, -- 'showmode' message (e.g., "-- INSERT --")
|
||||||
|
|
||||||
keyword = { fg = "#8b009d", italic = true },
|
NvimTreeRootFolder = { fg = "palette.lightblue", style = "bold" },
|
||||||
|
NvimTreeFolderName = { fg = "palette.lightblue" },
|
||||||
|
NvimTreeFolderIcon = { fg = "palette.lightblue" },
|
||||||
|
NvimTreeOpenedFolderName = { fg = "palette.lightblue" },
|
||||||
|
NvimTreeSymlinkFolderName = { fg = "palette.magenta" },
|
||||||
|
|
||||||
}
|
NvimTreeExecFile = { fg = "palette.red" },
|
||||||
|
NvimTreeImageFile = { fg = "palette.white" },
|
||||||
|
NvimTreeSpecialFile = { fg = "palette.yellow" },
|
||||||
|
NvimTreeSymlink = { fg = "palette.magenta" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
-- palettes = {
|
|
||||||
-- all = {
|
|
||||||
-- black = Shade.new("#404944", 0.15, -0.15),
|
|
||||||
-- white = Shade.new("#dee4df", 0.15, -0.15),
|
|
||||||
-- red = Shade.new("#ffb4a9", 0.15, -0.15),
|
|
||||||
-- orange = Shade.new("#e3c46d", 0.15, -0.15),
|
|
||||||
-- green = Shade.new("#a3d397", 0.10, -0.15),
|
|
||||||
-- darkgreen = Shade.new("#005602", 0.10, -0.15),
|
|
||||||
-- yellow = Shade.new("#e3c46d", 0.15, -0.15),
|
|
||||||
-- blue = Shade.new("#b7c4ff", 0.15, -0.15),
|
|
||||||
-- magenta = Shade.new("#f5b2e2", 0.30, -0.15),
|
|
||||||
-- pink = Shade.new("#f5b2e2", 0.15, -0.15),
|
|
||||||
-- purple = Shade.new("#761464", 0.15, -0.15),
|
|
||||||
-- cyan = Shade.new("#8ad6b6", 0.15, -0.15),
|
|
||||||
-- lightblue = Shade.new("#5c77ff", 0.15, -0.15),
|
|
||||||
--
|
|
||||||
-- bg0 = "#0f1512", -- Dark bg (status line and float)
|
|
||||||
-- bg1 = "#0f1512", -- Default bg
|
|
||||||
-- bg2 = "#1b211e", -- Lighter bg (colorcolm folds)
|
|
||||||
-- bg3 = "#252b28", -- Lighter bg (cursor line)
|
|
||||||
-- bg4 = "#303633", -- Conceal, border fg
|
|
||||||
--
|
|
||||||
-- fg0 = "#dee4df", -- Lighter fg
|
|
||||||
-- fg1 = "#dee4df", -- Default fg
|
|
||||||
-- fg2 = "#dee4df", -- Darker fg (status line)
|
|
||||||
-- fg3 = "#89938d", -- Darker fg (line numbers, fold colums)
|
|
||||||
--
|
|
||||||
-- sel0 = "#404944", -- Popup bg, visual selection
|
|
||||||
-- sel1 = "#00513b", -- Popup sel bg, search bg
|
|
||||||
--
|
|
||||||
-- comment = "#89938d",
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- groups = {
|
|
||||||
-- all = {
|
|
||||||
-- Cursor = { fg = "palette.white", bg = "palette.lightblue" }, -- character under the cursor
|
|
||||||
-- WinSeparator = { fg = "palette.bg2" }, -- the column separating vertically split windows
|
|
||||||
-- EndOfBuffer = { link = "WinSeparator" }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
|
|
||||||
-- CursorLine = { bg = "palette.bg1" },
|
|
||||||
-- CursorLineNr = { fg = "palette.lightblue", style = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line.
|
|
||||||
-- Search = { fg = "palette.lightblue", bg = "#00513b" }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.
|
|
||||||
-- IncSearch = { fg = "palette.lightblue", bg = "#1a6b51" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c"
|
|
||||||
-- ModeMsg = { fg = "palette.bg3", style = "bold" }, -- 'showmode' message (e.g., "-- INSERT --")
|
|
||||||
--
|
|
||||||
-- NvimTreeRootFolder = { fg = "palette.lightblue", style = "bold" },
|
|
||||||
-- NvimTreeFolderName = { fg = "palette.lightblue" },
|
|
||||||
-- NvimTreeFolderIcon = { fg = "palette.lightblue" },
|
|
||||||
-- NvimTreeOpenedFolderName = { fg = "palette.lightblue" },
|
|
||||||
-- NvimTreeSymlinkFolderName = { fg = "palette.magenta" },
|
|
||||||
--
|
|
||||||
-- NvimTreeExecFile = { fg = "palette.red" },
|
|
||||||
-- NvimTreeImageFile = { fg = "palette.white" },
|
|
||||||
-- NvimTreeSpecialFile = { fg = "palette.yellow" },
|
|
||||||
-- NvimTreeSymlink = { fg = "palette.magenta" },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- spec = {
|
|
||||||
-- syntax = {
|
|
||||||
-- bracket = "palette.white",
|
|
||||||
-- builtin0 = "palette.cyan",
|
|
||||||
-- builtin1 = "palette.green",
|
|
||||||
-- builtin2 = "palette.green",
|
|
||||||
-- comment = { fg = "palette.comment", style = "italic" },
|
|
||||||
-- conditional = "palette.pink",
|
|
||||||
-- const = "palette.blue",
|
|
||||||
-- dep = { fg = "palette.black", style = "strikethrough" },
|
|
||||||
-- field = "palette.green",
|
|
||||||
-- func = { fg ="palette.magenta", style = "italic" },
|
|
||||||
-- ident = "palette.cyan",
|
|
||||||
-- keywords = { fg = "palette.magenta", style = "italic" },
|
|
||||||
-- number = "palette.purple",
|
|
||||||
-- operator = "palette.white",
|
|
||||||
-- preproc = "palette.black",
|
|
||||||
-- regex = "palette.yellow",
|
|
||||||
-- statement = "palette.darkgreen",
|
|
||||||
-- string = "",
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- })
|
|
||||||
if not vim.g.vscode then
|
if not vim.g.vscode then
|
||||||
vim.cmd([[colorscheme carbonfox]])
|
vim.cmd([[colorscheme carbonfox]])
|
||||||
end
|
end
|
||||||
|
@ -45,13 +45,12 @@
|
|||||||
"prefix": "latex-prepare",
|
"prefix": "latex-prepare",
|
||||||
"body": [
|
"body": [
|
||||||
"\\documentclass{article}\n",
|
"\\documentclass{article}\n",
|
||||||
"\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!",
|
"\\input{~/projects/generalSchool/helpers.tex}\n",
|
||||||
"\\input{\\dir/include.tex}",
|
|
||||||
"\\load{recommended}\n",
|
|
||||||
"\\setup{$1}\n",
|
"\\setup{$1}\n",
|
||||||
"\\begin{document}",
|
"\\begin{document}",
|
||||||
"\\startDocument",
|
"\\maketitle",
|
||||||
"\\usetcolorboxes",
|
"\\pagestyle{fancy}",
|
||||||
|
"\\thispagestyle{fancy}\n\n",
|
||||||
"$2\n\n",
|
"$2\n\n",
|
||||||
"\\end{document}"
|
"\\end{document}"
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user