Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "uhs-robert/oasis.nvim",
- lazy = false,
- priority = 1000,
- config = function()
- local dfl = "Identifier"
- local highlight_overrides = {}
- local fg = function(cl)
- return { fg = cl }
- end
- remaps = {
- -- function calls
- "@function",
- "@variable",
- -- namespace
- "@module",
- "@lsp.type.namespace.cpp",
- -- types
- "@type",
- "@lsp.type.class",
- { "@type.builtin", "Statement" },
- -- args
- "@variable.parameter",
- "@lsp.type.parameter",
- -- class members
- "@property.cpp",
- "@lsp.type.property.cpp",
- { "@constant", "@constant.builtin", "@number", "boolean", "String" },
- { "Comment", fg("#87ceeb") },
- { "Preproc", fg("#cd5c5c") },
- { "String", fg("#ffa0a0") },
- -- { "Statement", "Conditional" },
- { "Conditional", { fg = "#bdb76b", bold = true } },
- { "@keyword.directive", "Preproc" },
- -- operators
- { "@operator", "@punctuation.delimiter", "@punctuation.bracket" },
- { "@lsp.typemod.operator.userDefined", "@lsp.type.macro" },
- -- pretty
- { "@variable.builtin", "@keyword.operator", "Statement" },
- { "@lsp.type.macro", "Constant" },
- { "@string.escape", fg("#ffdead") },
- -- global variables
- { "@lsp.typemod.variable.fileScope", fg("#8080e0") },
- { "@lsp.typemod.variable.globalScope", fg("#b050b0") },
- }
- highlight_overrides["Identifier"] = { fg = "#c1c8d1" }
- -- highlight_overrides["Identifier"] = { fg = "#cccccc" }
- for i, n in pairs(remaps) do
- if type(n) == "table" then
- for k = 1, #n - 1 do
- highlight_overrides[n[k]] = n[#n]
- end
- else
- highlight_overrides[n] = dfl
- end
- end
- require("oasis").setup({
- style = "lagoon", -- Optional: Choose any style like `lagoon` or 'dune'.
- palette_overrides = {
- oasis_lagoon = {
- bg = { core = "#000000" },
- },
- },
- highlight_overrides = highlight_overrides,
- })
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment