Guest User

Untitled

a guest
Nov 18th, 2025
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. {
  2. "uhs-robert/oasis.nvim",
  3. lazy = false,
  4. priority = 1000,
  5. config = function()
  6. local dfl = "Identifier"
  7. local highlight_overrides = {}
  8. local fg = function(cl)
  9. return { fg = cl }
  10. end
  11. remaps = {
  12. -- function calls
  13. "@function",
  14. "@variable",
  15. -- namespace
  16. "@module",
  17. "@lsp.type.namespace.cpp",
  18. -- types
  19. "@type",
  20. "@lsp.type.class",
  21. { "@type.builtin", "Statement" },
  22. -- args
  23. "@variable.parameter",
  24. "@lsp.type.parameter",
  25. -- class members
  26. "@property.cpp",
  27. "@lsp.type.property.cpp",
  28. { "@constant", "@constant.builtin", "@number", "boolean", "String" },
  29. { "Comment", fg("#87ceeb") },
  30. { "Preproc", fg("#cd5c5c") },
  31. { "String", fg("#ffa0a0") },
  32. -- { "Statement", "Conditional" },
  33. { "Conditional", { fg = "#bdb76b", bold = true } },
  34. { "@keyword.directive", "Preproc" },
  35. -- operators
  36. { "@operator", "@punctuation.delimiter", "@punctuation.bracket" },
  37. { "@lsp.typemod.operator.userDefined", "@lsp.type.macro" },
  38. -- pretty
  39. { "@variable.builtin", "@keyword.operator", "Statement" },
  40. { "@lsp.type.macro", "Constant" },
  41. { "@string.escape", fg("#ffdead") },
  42. -- global variables
  43. { "@lsp.typemod.variable.fileScope", fg("#8080e0") },
  44. { "@lsp.typemod.variable.globalScope", fg("#b050b0") },
  45. }
  46. highlight_overrides["Identifier"] = { fg = "#c1c8d1" }
  47. -- highlight_overrides["Identifier"] = { fg = "#cccccc" }
  48. for i, n in pairs(remaps) do
  49. if type(n) == "table" then
  50. for k = 1, #n - 1 do
  51. highlight_overrides[n[k]] = n[#n]
  52. end
  53. else
  54. highlight_overrides[n] = dfl
  55. end
  56. end
  57. require("oasis").setup({
  58. style = "lagoon", -- Optional: Choose any style like `lagoon` or 'dune'.
  59. palette_overrides = {
  60. oasis_lagoon = {
  61. bg = { core = "#000000" },
  62. },
  63. },
  64. highlight_overrides = highlight_overrides,
  65. })
  66. end,
  67. }
Advertisement
Add Comment
Please, Sign In to add comment