nvim-config/after/plugin/colors.lua

286 lines
8.1 KiB
Lua
Raw Normal View History

2023-05-08 18:41:49 +01:00
vim.opt.termguicolors = true
vim.ayucolor="dark"
vim.g.indentLine_char = ""
vim.g.indentLine_first_char = ""
vim.g.indentLine_showFirstIndentLevel = 1
vim.g.indentLine_setColors = 0
vim.opt.cursorline = true
2023-06-25 09:51:22 +01:00
vim.opt.background = 'light'
2023-05-08 18:41:49 +01:00
-- vim.g.cyberpunk_cursorline='black'
-- vim.cmd('colorscheme ayu')
2023-06-25 00:10:25 +01:00
-- vim.cmd('colorscheme night_owl_light')
2023-05-08 18:41:49 +01:00
-- vim.cmd('colorscheme eva01')
-- vim.cmd('colorscheme cyberpunk')
2023-05-15 14:50:17 +01:00
-- vim.cmd('colorscheme catppuccin-latte')
2023-06-12 13:18:07 +01:00
-- vim.cmd('colorscheme oxocarbon')
2023-06-25 00:10:25 +01:00
vim.cmd('colorscheme PaperColor')
2023-05-08 18:41:49 +01:00
-- examples for your init.lua
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- setup with some options
require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
2023-06-12 13:18:07 +01:00
auto_reload_on_write = true,
create_in_closed_folder = false,
disable_netrw = false,
hijack_cursor = false,
hijack_netrw = true,
hijack_unnamed_buffer_when_opening = false,
ignore_buffer_on_setup = false,
open_on_setup = false,
open_on_setup_file = false,
open_on_tab = false,
ignore_buf_on_tab_change = {},
sort_by = "name",
root_dirs = {},
prefer_startup_root = false,
sync_root_with_cwd = false,
reload_on_bufenter = false,
respect_buf_cwd = false,
on_attach = "disable",
remove_keymaps = false,
select_prompts = false,
view = {
adaptive_size = false,
centralize_selection = false,
width = 30,
hide_root_folder = false,
side = "left",
preserve_window_proportions = false,
number = false,
relativenumber = false,
signcolumn = "yes",
mappings = {
custom_only = false,
list = {
-- user mappings go here
},
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
float = {
enable = false,
quit_on_focus_loss = true,
open_win_config = {
relative = "editor",
border = "rounded",
width = 30,
height = 30,
row = 1,
col = 1,
},
2023-05-08 18:41:49 +01:00
},
},
2023-06-12 13:18:07 +01:00
renderer = {
add_trailing = false,
group_empty = false,
highlight_git = false,
full_name = false,
highlight_opened_files = "none",
root_folder_modifier = ":~",
indent_width = 2,
indent_markers = {
enable = false,
inline_arrows = true,
icons = {
corner = "",
edge = "",
item = "",
bottom = "",
none = " ",
},
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
icons = {
webdev_colors = true,
git_placement = "before",
padding = " ",
symlink_arrow = "",
show = {
file = true,
folder = true,
folder_arrow = true,
git = true,
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
glyphs = {
default = "",
symlink = "",
bookmark = "",
folder = {
arrow_closed = "",
arrow_open = "",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = "",
},
git = {
unstaged = "🙄",
staged = "🥺",
unmerged = "🫢",
renamed = "📛",
untracked = "💫",
deleted = "🗑️",
ignored = "🤷",
},
2023-05-08 18:41:49 +01:00
},
},
2023-06-12 13:18:07 +01:00
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
symlink_destination = true,
},
hijack_directories = {
enable = true,
auto_open = true,
},
update_focused_file = {
enable = false,
update_root = false,
ignore_list = {},
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
ignore_ft_on_setup = {},
system_open = {
cmd = "",
args = {},
},
diagnostics = {
2023-05-08 18:41:49 +01:00
enable = true,
2023-06-12 13:18:07 +01:00
show_on_dirs = false,
debounce_delay = 50,
icons = { error = "☣️ ", warning = "😞", hint = "❤️ ", info = " " }
,
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
filters = {
dotfiles = false,
custom = {},
2023-05-08 18:41:49 +01:00
exclude = {},
},
2023-06-12 13:18:07 +01:00
filesystem_watchers = {
enable = true,
debounce_delay = 50,
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
git = {
enable = true,
ignore = true,
show_on_dirs = true,
timeout = 400,
},
actions = {
use_system_clipboard = true,
change_dir = {
2023-05-08 18:41:49 +01:00
enable = true,
2023-06-12 13:18:07 +01:00
global = false,
restrict_above_cwd = false,
},
expand_all = {
max_folder_discovery = 300,
exclude = {},
},
file_popup = {
open_win_config = {
col = 1,
row = 1,
relative = "cursor",
border = "shadow",
style = "minimal",
2023-05-08 18:41:49 +01:00
},
},
2023-06-12 13:18:07 +01:00
open_file = {
quit_on_open = false,
resize_window = true,
window_picker = {
enable = true,
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
exclude = {
filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" },
buftype = { "nofile", "terminal", "help" },
},
},
},
remove_file = {
close_window = true,
},
},
trash = {
cmd = "gio trash",
require_confirm = true,
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
live_filter = {
prefix = "[FILTER]: ",
always_show_folders = true,
},
log = {
enable = false,
truncate = false,
types = {
all = false,
config = false,
copy_paste = false,
dev = false,
diagnostics = false,
git = false,
profile = false,
watcher = false,
},
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
notify = {
threshold = vim.log.levels.INFO,
2023-05-08 18:41:49 +01:00
},
2023-06-12 13:18:07 +01:00
}
2023-05-08 18:41:49 +01:00
local hls = {
PmenuSel = { bg = "#282C34", fg = "NONE" },
Pmenu = { fg = "#C5CDD9", bg = "#22252A" },
CmpItemAbbrDeprecated = { fg = "#7E8294", bg = "NONE", strikethrough = true },
CmpItemAbbrMatch = { fg = "#82AAFF", bg = "NONE", bold = true },
CmpItemAbbrMatchFuzzy = { fg = "#82AAFF", bg = "NONE", bold = true },
CmpItemMenu = { fg = "#C792EA", bg = "NONE", italic = true },
CmpItemKindField = { fg = "#EED8DA", bg = "#B5585F" },
CmpItemKindProperty = { fg = "#EED8DA", bg = "#B5585F" },
CmpItemKindEvent = { fg = "#EED8DA", bg = "#B5585F" },
CmpItemKindText = { fg = "#C3E88D", bg = "#9FBD73" },
CmpItemKindEnum = { fg = "#C3E88D", bg = "#9FBD73" },
CmpItemKindKeyword = { fg = "#C3E88D", bg = "#9FBD73" },
CmpItemKindConstant = { fg = "#FFE082", bg = "#D4BB6C" },
CmpItemKindConstructor = { fg = "#FFE082", bg = "#D4BB6C" },
CmpItemKindReference = { fg = "#FFE082", bg = "#D4BB6C" },
CmpItemKindFunction = { fg = "#EADFF0", bg = "#A377BF" },
CmpItemKindStruct = { fg = "#EADFF0", bg = "#A377BF" },
CmpItemKindClass = { fg = "#EADFF0", bg = "#A377BF" },
CmpItemKindModule = { fg = "#EADFF0", bg = "#A377BF" },
CmpItemKindOperator = { fg = "#EADFF0", bg = "#A377BF" },
CmpItemKindVariable = { fg = "#C5CDD9", bg = "#7E8294" },
CmpItemKindFile = { fg = "#C5CDD9", bg = "#7E8294" },
CmpItemKindUnit = { fg = "#F5EBD9", bg = "#D4A959" },
CmpItemKindSnippet = { fg = "#F5EBD9", bg = "#D4A959" },
CmpItemKindFolder = { fg = "#F5EBD9", bg = "#D4A959" },
CmpItemKindMethod = { fg = "#DDE5F5", bg = "#6C8ED4" },
CmpItemKindValue = { fg = "#DDE5F5", bg = "#6C8ED4" },
CmpItemKindEnumMember = { fg = "#DDE5F5", bg = "#6C8ED4" },
CmpItemKindInterface = { fg = "#D8EEEB", bg = "#58B5A8" },
CmpItemKindColor = { fg = "#D8EEEB", bg = "#58B5A8" },
CmpItemKindTypeParameter = { fg = "#D8EEEB", bg = "#58B5A8" },
}
for key, value in pairs(hls) do
vim.api.nvim_set_hl(0, key, value)
end