Skip to content

Conversation

@bar0meter
Copy link
Owner

@bar0meter bar0meter commented Mar 25, 2025

Summary by CodeRabbit

  • Documentation

    • Updated project documentation with a new introductory line.
  • New Features

    • Introduced a new color theme "rose-pine" for enhanced aesthetics.
    • Altered terminal color settings to disable true color support.
    • Added a simple startup log message and updated the default directory for background images.
  • Refactor

    • Streamlined navigation by removing redundant quickfix key mappings.
  • Chores

    • Updated plugin configurations and dependencies, including the removal of several unused color schemes and the integration of a new Go language support entry.
    • Removed the "vim-go" plugin integration from the configuration.

bar0meter and others added 3 commits February 5, 2025 23:43
earlier hidden files were missing
also now sorting files using last modified (used `--sort accessed` of
ripgrep)
@coderabbitai
Copy link

coderabbitai bot commented Mar 25, 2025

Walkthrough

This pull request updates several configuration files. It adds a "# nvim" header in the README and a "Hello World" log in the TypeScript initializer. In Vim plugin configurations, it removes two quickfix mappings and reformats theme highlights while adding a commented "rose-pine" colorscheme. The terminal true color setting is disabled in the Lua initializer. The dependency lock file is revised to remove some plugins and add a new "neovim" entry. Additionally, Lua custom plugin configurations are adjusted by removing older themes, adding a new colorscheme configuration, updating a wallpaper path, and removing a vim-go file.

Changes

File(s) Change Summary
README.md, init.ts README: Added a line # nvim.
Init.ts: Added a console log "Hello World".
after/plugin/keybinding.vim, after/plugin/theme.vim, init.lua Keybinding.vim: Removed mappings for <leader>gg and <leader>gw.
Theme.vim: Added a commented colorscheme rose-pine line and reformatted highlight commands.
Init.lua: Changed vim.opt.termguicolors from true to false.
lazy-lock.json Removed plugin entries for "nord.nvim", "onedarkpro.nvim", "vim-colors-solarized", and "vim-go"; added a new "neovim" entry with branch "main" and a specific commit hash.
lua/custom/plugins/{colorscheme.lua, lsp.lua, telescope.lua, vim_go.lua} Colorscheme.lua: Added "rose-pine" configuration and removed configurations for "solarized," "onedark," "nord," and "colorbuddy".
Lsp.lua: Added a new variable for "fatih/vim-go".
Telescope.lua: Adjusted indentation and updated the anime_selector path from "~/anime-wallpapers" to "~/code/wallpapers/ThePrimeagen".
Vim_go.lua: Deleted the file containing the vim-go plugin configuration.

Poem

I’m a rabbit on the run,
Hopping through lines of code for fun,
Removing clutter, setting themes anew,
Logging tiny messages with a cheerful "Hello World" too,
With plugins pruned and colors set just right,
I celebrate these changes ‘til the day turns night!
🐇🌸


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a415933 and 0935a7f.

📒 Files selected for processing (10)
  • README.md (1 hunks)
  • after/plugin/keybinding.vim (0 hunks)
  • after/plugin/theme.vim (2 hunks)
  • init.lua (1 hunks)
  • init.ts (1 hunks)
  • lazy-lock.json (1 hunks)
  • lua/custom/plugins/colorscheme.lua (1 hunks)
  • lua/custom/plugins/lsp.lua (1 hunks)
  • lua/custom/plugins/telescope.lua (1 hunks)
  • lua/custom/plugins/vim_go.lua (0 hunks)
💤 Files with no reviewable changes (2)
  • lua/custom/plugins/vim_go.lua
  • after/plugin/keybinding.vim
🔇 Additional comments (5)
init.lua (1)

38-38:

Details

❓ Verification inconclusive

Verify the impact of disabling termguicolors.

Changing termguicolors from true to false will disable true color support in the terminal. This may impact the appearance of syntax highlighting and colorschemes, including the new "rose-pine" colorscheme mentioned in the summary.

Make sure this change is intentional and test the visual appearance in your terminal to ensure it looks as expected.


🏁 Script executed:

#!/bin/bash
# Check if any colorscheme configurations rely on termguicolors
rg -l "termguicolors" --glob "*.lua" --glob "*.vim"

# Check if the rose-pine colorscheme is configured in the codebase
rg -l "rose-pine" --glob "*.lua" --glob "*.vim"

Length of output: 166


Action: Verify the impact on colors with rose-pine

The change in init.lua (line 38) disables true color support, which rose-pine relies on for its proper display. The configuration references in lua/custom/plugins/colorscheme.lua and after/plugin/theme.vim indicate that the rose-pine colorscheme is in use. Please verify in your terminal that the colors and syntax highlighting appear as intended, and consider whether disabling termguicolors is deliberate.

lazy-lock.json (1)

16-16: Plugin dependency update aligns with theme changes

The addition of the "neovim" plugin is consistent with the rose-pine theme configuration found in the colorscheme.lua file.

lua/custom/plugins/telescope.lua (1)

2-196: Indentation improvements enhance readability

The consistent indentation adjustments throughout the file improve code readability while maintaining the same functionality.

after/plugin/theme.vim (2)

3-3: Rose-pine theme alternative prepared

You've added a commented alternative colorscheme option that aligns with the new rose-pine configuration, making it easy to switch themes when ready.


24-26: Line number highlighting disabled

The line number highlighting customizations have been commented out, which will allow the default styling from your active colorscheme to be used instead.

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitaidev in a new review comment at the desired location with your query. Examples:
    • @coderabbitaidev generate unit testing code for this file.
    • @coderabbitaidev modularize this function.
  • PR comments: Tag @coderabbitaidev in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitaidev gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitaidev read src/utils.ts and generate unit testing code.
    • @coderabbitaidev read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitaidev help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitaidev pause to pause the reviews on a PR.
  • @coderabbitaidev resume to resume the paused reviews.
  • @coderabbitaidev review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitaidev full review to do a full review from scratch and review all the files again.
  • @coderabbitaidev summary to regenerate the summary of the PR.
  • @coderabbitaidev generate docstrings to generate docstrings for this PR.
  • @coderabbitaidev resolve resolve all the CodeRabbit review comments.
  • @coderabbitaidev plan to trigger planning for file edits and PR creation.
  • @coderabbitaidev configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitaidev help to get help.

Other keywords and placeholders

  • Add @coderabbitaidev ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitaidev summary or @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitaidev or @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ae55183 and 0935a7f.

📒 Files selected for processing (10)
  • README.md (1 hunks)
  • after/plugin/keybinding.vim (0 hunks)
  • after/plugin/theme.vim (2 hunks)
  • init.lua (1 hunks)
  • init.ts (1 hunks)
  • lazy-lock.json (1 hunks)
  • lua/custom/plugins/colorscheme.lua (1 hunks)
  • lua/custom/plugins/lsp.lua (1 hunks)
  • lua/custom/plugins/telescope.lua (1 hunks)
  • lua/custom/plugins/vim_go.lua (0 hunks)
💤 Files with no reviewable changes (2)
  • lua/custom/plugins/vim_go.lua
  • after/plugin/keybinding.vim
🔇 Additional comments (8)
README.md (1)

1-1: Title added to README.

The addition of the # nvim header line provides a clear title for the repository, indicating it's related to Neovim configuration.

lua/custom/plugins/telescope.lua (1)

2-4: Code formatting changes look good.

The indentation and formatting changes maintain consistent style and don't affect functionality.

Also applies to: 7-30, 33-46

init.lua (1)

38-38:

Details

❓ Verification inconclusive

Disabled true color terminal support.

Changed termguicolors from true to false, disabling true color support in the terminal. This will affect the appearance of syntax highlighting and may impact the new "rose-pine" colorscheme mentioned in other files.

This change may be intentional as part of the colorscheme updates, but verify that it works as expected with the new colorscheme configuration.


🌐 Web query:

What is the effect of setting vim.opt.termguicolors to false in Neovim?

💡 Result:

Setting vim.opt.termguicolors = false in Neovim disables True Color support, forcing Neovim to use the terminal's 256-color palette or 16 basic ANSI colors instead of hexadecimal RGB values. This impacts color accuracy and consistency in the following ways:

Color Depth Limitations

  • Fallback to 256/16 colors: Neovim relies on the terminal's predefined color palette (e.g., ANSI 16 colors or xterm-256color) rather than true RGB values. Colorschemes may appear less vibrant or mismatched compared to their True Color counterparts[1][7][8].
  • Terminal color inheritance: Terminal emulator colors override Neovim's colorscheme in splits or embedded terminals, leading to inconsistencies between editor UI and terminal content[2][3].

Behavioral Changes

  • Legacy escape codes: Disables modern colon-formatted escape codes (\x1b[38:2:), reverting to semicolon-delimited codes (\x1b[38;2;) for compatibility with terminals lacking True Color support[3][8].
  • ANSI color variables: Neovim no longer respects GUI-defined terminal color overrides (e.g., g:terminal_color_0), using the terminal emulator’s default ANSI palette instead[2][7].

Practical Implications

  • Colorscheme fidelity: Themes designed for True Color (e.g., tokyyonight) display simplified gradients or fallback colors[1][5].
  • Terminal compatibility: Avoids errors in terminals like Kitty that historically struggled with True Color formatting[3].

For example, with termguicolors disabled:

vim.opt.termguicolors = false
vim.cmd.colorscheme('tokyonight')  -- Uses 256-color variant

The gutter line numbers and syntax highlighting adopt the terminal's color limitations, potentially diverging from the intended design[1][5][8].

Citations:


Review Update: Verification of True Color Support Disabled

The change in init.lua (line 38) intentionally disables true color support by setting vim.opt.termguicolors to false. This causes Neovim to fall back to the terminal’s limited 256/16-color palette, which can lead to less vibrant syntax highlighting and color discrepancies—an expected behavior when using themes like "rose-pine" that benefit from true color support.

Please ensure that this fallback is acceptable for the new colorscheme configuration and that any visual differences (such as color fidelity or mismatches in UI elements) are intentional and have been tested.

after/plugin/theme.vim (2)

3-3: New colorscheme option ready for activation

The commented rose-pine colorscheme aligns with the detailed configuration added in colorscheme.lua. This provides an easy way to switch themes when desired.


24-26: Line number styling is now commented out

The line number highlighting customizations for Gruvbox have been commented out. This will make the line numbers use the default styling from the active colorscheme instead of the previously defined custom colors.

If you want to maintain consistent line number styling when switching between colorschemes, consider keeping these highlight definitions but adapting them to work well with both Gruvbox and Rose Pine.

lua/custom/plugins/colorscheme.lua (2)

6-89: Well-structured Rose Pine colorscheme configuration

The added Rose Pine colorscheme configuration is comprehensive and includes various customization options for variants, styles, and UI element colors. The configuration follows best practices with clear organization and commented examples for further customization.


91-93: Note on colorscheme activation

The return statement only includes gruvbox, which means Rose Pine won't be loaded automatically by the plugin manager. This is consistent with the commented Rose Pine line in theme.vim.

If you intend to use Rose Pine, ensure you either:

  1. Add rosepine to the return table in this file, or
  2. Uncomment the colorscheme rose-pine line in theme.vim

Both approaches shouldn't be used simultaneously to avoid conflicts.

lazy-lock.json (1)

16-16: Rose Pine plugin added to dependencies

The addition of the "neovim" entry with branch "main" corresponds to the Rose Pine theme plugin referenced in your colorscheme.lua file.

To maintain clarity in your dependency list, consider renaming this entry from "neovim" to "rose-pine/neovim" to better reflect the actual plugin. The current name might cause confusion as it appears to be related to Neovim itself rather than the Rose Pine theme.

@@ -0,0 +1 @@
console.log("Hello World")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Consider if this logging statement is intended for production.

This logging statement will output "Hello World" to the console when the file runs. If this is intended for debugging, it should be removed before merging to production.


🌐 Web query:

Is it a good practice to commit console.log statements to production code?

💡 Result:

Committing console.log statements to production code is generally not recommended due to security, performance, and maintainability concerns. Here’s a breakdown of the key issues and best practices:

Security Risks

  • Exposure of sensitive data: Accidental logging of user credentials, tokens, or PII (Personally Identifiable Information) can lead to data breaches[4].
  • Debugging surface: Console logs can inadvertently expose internal application logic to end users through browser developer tools[3][8].

Performance and Usability Issues

  • Log noise: Excessive logging in production clutters output, slows debugging, and increases log storage costs[5][7].
  • Uncontrolled verbosity: Unfiltered console.log statements cannot be dynamically enabled/disabled based on log levels (e.g., info, warn, error)[4][6].

Best Practices for Managing Logs

  1. Remove console.log from production builds:

    • Use build tools like Terser (drop_console: true)[9] or Babel plugins (e.g., babel-plugin-transform-remove-console)[9].
    • Configure ESLint rules to block console.log merges into main branches[1][3].
  2. Override console methods conditionally:

    if (process.env.NODE_ENV === 'production') {
      console.log = () => {};
      console.warn = () => {};
    }

    This silences logs in production while preserving them in development[3][9].

  3. Adopt logging frameworks:

    • Use libraries like Winston or Pino (Node.js) for structured logging, log levels, and output control[4][5].
    • For browser apps, leverage tools like Bugfender to centralize remote logging without exposing logs to users[8].
  4. Use log levels judiciously:

    • Reserve console.error()/console.warn() for critical issues in production[6].
    • Enable debug-level logging only in development via environment variables[5].

Alternatives to console.log

  • Debugging modules: Libraries like debug allow granular, namespaced logging that can be toggled via environment variables[5].
  • Assertions: Use console.assert() to log only when conditions fail[1][6].
  • Styling/grouping: Enhance readability with console.group() or CSS-formatted logs during development[1][8].

In summary, while console.log is invaluable during development, it should be excluded from production code through automated tooling or structured logging frameworks to maintain security, performance, and maintainability.

Citations:


Action Required: Remove or Conditionally Disable Debug Logging in Production

  • File: init.ts (Line 1)
  • Issue: The statement console.log("Hello World") will output to the console in all environments. As best practices suggest, leaving such debug logs in production can lead to security, performance, and maintenance issues.
  • Recommendation: If this log is only intended for development debugging, please remove it before merging. Alternatively, if logging is required in production, consider integrating a logging framework or gating the output with an environment check (e.g., only enabling logs when not in production).

@bar0meter
Copy link
Owner Author

@coderabbitai full review

@coderabbitai
Copy link

coderabbitai bot commented Apr 9, 2025

✅ Actions performed

Full review triggered.

1 similar comment
@coderabbitaidev
Copy link

✅ Actions performed

Full review triggered.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (3)
init.ts (1)

1-1: ⚠️ Potential issue

Remove console.log statement.

This logging statement will output "Hello World" to the console when the file runs. Leaving debug logs in production code is not recommended as it can lead to security, performance, and maintenance issues.

-console.log("Hello World")
lua/custom/plugins/lsp.lua (1)

351-353: ⚠️ Potential issue

Unused variable detected.

The vim_go variable is defined but not included in the return statement (lines 355-360), making it unused. If this is intended to replace the removed vim_go.lua file, you should add it to the returned table.

return {
  jdtls,
  typescript_tools,
  lspconfig,
  scala_metals,
+ vim_go,
}
lua/custom/plugins/telescope.lua (1)

49-49: Reconfirm the new wallpaper directory.

The new directory path ~/code/wallpapers/ThePrimeagen might not exist on all systems. This was previously flagged in older reviews. Please ensure that the directory is present or updated to a valid location.

🧹 Nitpick comments (2)
after/plugin/theme.vim (2)

3-3: Consider removing or uncommenting the “rose-pine” colorscheme line.

It’s currently commented out. If this is intentional, that’s fine. Otherwise, consider enabling or removing it to avoid confusion.


24-26: Remove or uncomment the highlight lines.

These lines are commented out. If they're part of a future configuration, please uncomment them. Otherwise, consider removing them to keep the file clean.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a415933 and 0935a7f.

📒 Files selected for processing (10)
  • README.md (1 hunks)
  • after/plugin/keybinding.vim (0 hunks)
  • after/plugin/theme.vim (2 hunks)
  • init.lua (1 hunks)
  • init.ts (1 hunks)
  • lazy-lock.json (1 hunks)
  • lua/custom/plugins/colorscheme.lua (1 hunks)
  • lua/custom/plugins/lsp.lua (1 hunks)
  • lua/custom/plugins/telescope.lua (1 hunks)
  • lua/custom/plugins/vim_go.lua (0 hunks)
💤 Files with no reviewable changes (2)
  • lua/custom/plugins/vim_go.lua
  • after/plugin/keybinding.vim
🔇 Additional comments (2)
init.lua (1)

38-38:

Details

❓ Verification inconclusive

Verify implications of disabling true colors.

Changing termguicolors from true to false will disable terminal true color support, which may affect how syntax highlighting and themes appear. Make sure this change is intentional and doesn't negatively impact the user experience, especially if using colorschemes that rely on true color support.


🏁 Script executed:

#!/bin/bash
# Check if there are any colorscheme configurations that might be affected
rg -A 3 "colorscheme" --type lua

Length of output: 458


Ensure the Change to Disable True Colors Is Intentional
Disabling termguicolors in init.lua (line 38) turns off true color support, which may negatively affect the appearance of our current colorscheme. Notably, lua/custom/plugins/colorscheme.lua explicitly sets the rose-pine colorscheme (with alternative options commented out), and many modern themes like rose-pine rely on true color support for optimal rendering. Please verify that this change was deliberate and confirm that the theme still displays correctly without true color support.

lazy-lock.json (1)

16-16: Check correctness of the “neovim” plugin entry.

This plugin naming is somewhat unusual, as “neovim” typically refers to the core editor. Please confirm that the intended plugin is indeed “neovim” and not a different repository. If it is correct, kindly ensure usage in the config is tested and stable.

Would you like me to run a script that searches for references to “neovim” in your codebase to ensure it’s utilized properly?

@@ -0,0 +1 @@
# nvim
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Expand README with more useful information.

The README is currently just a title with no actual content. Consider adding more information such as:

  • Project description
  • Installation instructions
  • Usage examples
  • Configuration options
  • Key features

Comment on lines +6 to 89
local rosepine = {
"rose-pine/neovim",
config = function()
require("rose-pine").setup {
variant = "auto", -- auto, main, moon, or dawn
dark_variant = "main", -- main, moon, or dawn
dim_inactive_windows = false,
extend_background_behind_borders = true,

local onedark = {
"olimorris/onedarkpro.nvim",
}
enable = {
terminal = true,
legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
migrations = true, -- Handle deprecated options automatically
},

local nord = {
"gbprod/nord.nvim",
}
styles = {
bold = true,
italic = false,
transparency = true,
},

local colorbuddy = {
"tjdevries/colorbuddy.nvim",
config = function()
local colorbuddy = require "colorbuddy"
local Color = colorbuddy.Color
local Group = colorbuddy.Group
local c = colorbuddy.colors

vim.cmd.colorscheme "gruvbuddy"
Color.new("background", "#282c34")
Color.new("gray0", "#282c34")

Group.new("Normal", c.superwhite, c.gray0)

vim.cmd [[
hi LineNr guifg=#f8fe7a
hi LineNrAbove guifg=#b0b1b0
hi LineNrBelow guifg=#b0b1b0
]]
groups = {
border = "muted",
link = "iris",
panel = "surface",

error = "love",
hint = "iris",
info = "foam",
note = "pine",
todo = "rose",
warn = "gold",

git_add = "foam",
git_change = "rose",
git_delete = "love",
git_dirty = "rose",
git_ignore = "muted",
git_merge = "iris",
git_rename = "pine",
git_stage = "iris",
git_text = "rose",
git_untracked = "subtle",

h1 = "iris",
h2 = "foam",
h3 = "rose",
h4 = "gold",
h5 = "pine",
h6 = "foam",
},

palette = {
-- Override the builtin palette per variant
-- moon = {
-- base = '#18191a',
-- overlay = '#363738',
-- },
},

highlight_groups = {
-- Comment = { fg = "foam" },
-- VertSplit = { fg = "muted", bg = "muted" },
},

before_highlight = function(group, highlight, palette)
-- Disable all undercurls
-- if highlight.undercurl then
-- highlight.undercurl = false
-- end
--
-- Change palette colour
-- if highlight.fg == palette.pine then
-- highlight.fg = palette.foam
-- end
end,
}

vim.cmd "colorscheme rose-pine"
-- vim.cmd("colorscheme rose-pine-main")
-- vim.cmd("colorscheme rose-pine-moon")
-- vim.cmd("colorscheme rose-pine-dawn")
end,
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Ensure the newly added “rose-pine” plugin is loaded.

Currently, rosepine is declared but not returned in the plugins table at lines 91–93. Consequently, Lazy won’t automatically load it. If you want to use this theme, you must return it in the table so that it’s activated.

Apply the following diff to load the plugin:

- return {
-   gruvbox,
- }
+ return {
+   gruvbox,
+   rosepine,
+ }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
local rosepine = {
"rose-pine/neovim",
config = function()
require("rose-pine").setup {
variant = "auto", -- auto, main, moon, or dawn
dark_variant = "main", -- main, moon, or dawn
dim_inactive_windows = false,
extend_background_behind_borders = true,
local onedark = {
"olimorris/onedarkpro.nvim",
}
enable = {
terminal = true,
legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
migrations = true, -- Handle deprecated options automatically
},
local nord = {
"gbprod/nord.nvim",
}
styles = {
bold = true,
italic = false,
transparency = true,
},
local colorbuddy = {
"tjdevries/colorbuddy.nvim",
config = function()
local colorbuddy = require "colorbuddy"
local Color = colorbuddy.Color
local Group = colorbuddy.Group
local c = colorbuddy.colors
vim.cmd.colorscheme "gruvbuddy"
Color.new("background", "#282c34")
Color.new("gray0", "#282c34")
Group.new("Normal", c.superwhite, c.gray0)
vim.cmd [[
hi LineNr guifg=#f8fe7a
hi LineNrAbove guifg=#b0b1b0
hi LineNrBelow guifg=#b0b1b0
]]
groups = {
border = "muted",
link = "iris",
panel = "surface",
error = "love",
hint = "iris",
info = "foam",
note = "pine",
todo = "rose",
warn = "gold",
git_add = "foam",
git_change = "rose",
git_delete = "love",
git_dirty = "rose",
git_ignore = "muted",
git_merge = "iris",
git_rename = "pine",
git_stage = "iris",
git_text = "rose",
git_untracked = "subtle",
h1 = "iris",
h2 = "foam",
h3 = "rose",
h4 = "gold",
h5 = "pine",
h6 = "foam",
},
palette = {
-- Override the builtin palette per variant
-- moon = {
-- base = '#18191a',
-- overlay = '#363738',
-- },
},
highlight_groups = {
-- Comment = { fg = "foam" },
-- VertSplit = { fg = "muted", bg = "muted" },
},
before_highlight = function(group, highlight, palette)
-- Disable all undercurls
-- if highlight.undercurl then
-- highlight.undercurl = false
-- end
--
-- Change palette colour
-- if highlight.fg == palette.pine then
-- highlight.fg = palette.foam
-- end
end,
}
vim.cmd "colorscheme rose-pine"
-- vim.cmd("colorscheme rose-pine-main")
-- vim.cmd("colorscheme rose-pine-moon")
-- vim.cmd("colorscheme rose-pine-dawn")
end,
}
local rosepine = {
"rose-pine/neovim",
config = function()
require("rose-pine").setup {
variant = "auto", -- auto, main, moon, or dawn
dark_variant = "main", -- main, moon, or dawn
dim_inactive_windows = false,
extend_background_behind_borders = true,
enable = {
terminal = true,
legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
migrations = true, -- Handle deprecated options automatically
},
styles = {
bold = true,
italic = false,
transparency = true,
},
groups = {
border = "muted",
link = "iris",
panel = "surface",
error = "love",
hint = "iris",
info = "foam",
note = "pine",
todo = "rose",
warn = "gold",
git_add = "foam",
git_change = "rose",
git_delete = "love",
git_dirty = "rose",
git_ignore = "muted",
git_merge = "iris",
git_rename = "pine",
git_stage = "iris",
git_text = "rose",
git_untracked = "subtle",
h1 = "iris",
h2 = "foam",
h3 = "rose",
h4 = "gold",
h5 = "pine",
h6 = "foam",
},
palette = {
-- Override the builtin palette per variant
-- moon = {
-- base = '#18191a',
-- overlay = '#363738',
-- },
},
highlight_groups = {
-- Comment = { fg = "foam" },
-- VertSplit = { fg = "muted", bg = "muted" },
},
before_highlight = function(group, highlight, palette)
-- Disable all undercurls
-- if highlight.undercurl then
-- highlight.undercurl = false
-- end
--
-- Change palette colour
-- if highlight.fg == palette.pine then
-- highlight.fg = palette.foam
-- end
end,
}
vim.cmd "colorscheme rose-pine"
-- vim.cmd("colorscheme rose-pine-main")
-- vim.cmd("colorscheme rose-pine-moon")
-- vim.cmd("colorscheme rose-pine-dawn")
end,
}
return {
gruvbox,
rosepine,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants