27 lines
930 B
Lua
Executable File
27 lines
930 B
Lua
Executable File
local colorscheme = "moonfly"
|
|
|
|
local custom_highlight =
|
|
vim.api.nvim_create_augroup( "CustomHighlight", {})
|
|
vim.api.nvim_create_autocmd( "ColorScheme", {
|
|
pattern = "nightfly",
|
|
callback = function()
|
|
vim.api.nvim_set_hl( 0, "String", { fg = "#00A000", italic = false })
|
|
vim.api.nvim_set_hl( 0, "Comment", { fg = "#808080", italic = false })
|
|
vim.api.nvim_set_hl( 0, "Function", { fg = "#82aaff", italic = false })
|
|
vim.api.nvim_set_hl( 0, "CursorLineNr", { fg = "#82aaff", italic = false })
|
|
vim.api.nvim_set_hl( 0, "Delimiter", { fg = "#ff0000", italic = false })
|
|
end,
|
|
|
|
group = custom_highlight,
|
|
})
|
|
|
|
local status, _ = pcall( vim.cmd, "colorscheme " .. colorscheme)
|
|
|
|
if not status then
|
|
vim.notify( "Colorscheme " .. colorscheme .. " is not found!")
|
|
return
|
|
end
|
|
|
|
vim.cmd [[ set cursorline]]
|
|
vim.cmd [[ highlight clear CursorLine]]
|