feat: customize moonfly

This commit is contained in:
2024-01-07 15:18:15 +01:00
parent 8ab36a925e
commit 448d6aa807
2 changed files with 24 additions and 2 deletions
+10 -1
View File
@@ -19,7 +19,16 @@ vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.mouse = "a"
vim.opt.mousemodel = "popup"
vim.opt.fillchars:append("diff: ")
vim.opt.fillchars = {
diff = " ",
horiz = "",
horizup = "",
horizdown = "",
vert = "",
vertleft = "",
vertright = "",
verthoriz = "",
}
vim.opt.splitbelow = true
vim.opt.splitright = true
-- set tabline=%!MyTabLine()
+14 -1
View File
@@ -18,9 +18,22 @@
local function setup()
vim.g.moonflyNormalFloat = true
vim.g.moonflyCursorColor = true
vim.g.moonflyWinSeparator = 2
local custom_highlight = vim.api.nvim_create_augroup("CustomMoonflyHighlight", {})
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "moonfly",
callback = function ()
vim.api.nvim_set_hl(0, "DiffAdd", { bg = "#364143" })
vim.api.nvim_set_hl(0, "DiffText", { bg = "#3e4b6b" })
vim.api.nvim_set_hl(0, "DiffChange", { bg = "#25293c" })
vim.api.nvim_set_hl(0, "DiffDelete", { bg = "#443244" })
end,
group = custom_highlight,
})
vim.cmd.colorscheme("moonfly")
end
return setup