feat: customize moonfly
This commit is contained in:
+10
-1
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user