config.nvim

NeoVim config
git clone git://popovic.xyz/nvim.config.git/
Log | Files | Refs

color.lua (1596B)


      1 ---@diagnostic disable: undefined-global
      2 return {
      3   "rose-pine/neovim",
      4   name = "rose-pine",
      5   config = function()
      6     require("rose-pine").setup({
      7       dark_variant = "main",
      8       dim_inactive_windows = true,
      9       disable_background = true,
     10       disable_nc_background = true,
     11       disable_float_background = true,
     12       extend_background_behind_borders = true,
     13       enable = {
     14         terminal = true,
     15         legacy_highlights = true,
     16         migrations = true,
     17       },
     18       styles = {
     19         bold = true,
     20         italic = true,
     21         transparency = false,
     22       },
     23     })
     24 
     25     vim.cmd.colorscheme("rose-pine-moon")
     26     vim.opt.cursorline = true
     27 
     28     vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
     29     vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
     30     vim.api.nvim_set_hl(0, "MatchParen", { bg = "darkred" })
     31     vim.api.nvim_set_hl(0, "SpellBad", { bold = true, underline = true, fg = "red" })
     32 
     33     vim.api.nvim_set_hl(0, "WinSeparator", { bold = true })
     34     vim.api.nvim_set_hl(0, "StatusLine", { bold = true })
     35 
     36     vim.fn.matchadd("ExtraWhiteSpace", "\\v\\s+$")
     37     vim.api.nvim_set_hl(0, "ExtraWhiteSpace", { ctermbg = "red", bg = "red" })
     38 
     39     vim.api.nvim_set_hl(0, "CopilotChatHeader", { fg = "#7C3AED", bold = true })
     40     vim.api.nvim_set_hl(0, "CopilotChatSeparator", { fg = "#374151" })
     41 
     42     vim.api.nvim_set_hl(0, "TelescopeBorder", { bold = true })
     43     vim.api.nvim_set_hl(0, "TelescopeTitle", { bold = true })
     44 
     45     vim.api.nvim_set_hl(0, "LspInlayHint", {
     46       bg = "none",
     47       fg = vim.api.nvim_get_hl_by_name("NonText", true).foreground,
     48     })
     49   end,
     50 }