-
Notifications
You must be signed in to change notification settings - Fork 0
Test cr #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
earlier hidden files were missing also now sorting files using last modified (used `--sort accessed` of ripgrep)
WalkthroughThis 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
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (10)
💤 Files with no reviewable changes (2)
🔇 Additional comments (5)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this 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
📒 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
# nvimheader 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
termguicolorsfromtruetofalse, 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 = falsein 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
termguicolorsdisabled:vim.opt.termguicolors = false vim.cmd.colorscheme('tokyonight') -- Uses 256-color variantThe gutter line numbers and syntax highlighting adopt the terminal's color limitations, potentially diverging from the intended design[1][5][8].
Citations:
- 1: https://vonheikemen.github.io/devlog/tools/build-your-first-lua-config-for-neovim/
- 2: https://groups.google.com/g/vim_dev/c/ibhLaq-YBHM
- 3: kovidgoyal/kitty#160
- 4: LunarVim/LunarVim#706
- 5: https://gist.github.com/AlexBeauchemin/281f5b70681bad5eeddb3f88381ca160
- 6: nvim-tree/nvim-tree.lua#2745
- 7: https://neovim.io/doc/user/news-0.10.html
- 8: https://vonheikemen.github.io/devlog/tools/configuring-neovim-using-lua/
- 9: https://neovim.io/doc/user/options.html
Review Update: Verification of True Color Support Disabled
The change in
init.lua(line 38) intentionally disables true color support by settingvim.opt.termguicolorstofalse. 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 activationThe 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 outThe 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 configurationThe 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 activationThe 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:
- Add
rosepineto the return table in this file, or- Uncomment the
colorscheme rose-pineline in theme.vimBoth approaches shouldn't be used simultaneously to avoid conflicts.
lazy-lock.json (1)
16-16: Rose Pine plugin added to dependenciesThe 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") | |||
There was a problem hiding this comment.
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.logstatements cannot be dynamically enabled/disabled based on log levels (e.g.,info,warn,error)[4][6].
Best Practices for Managing Logs
-
Remove
console.logfrom 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.logmerges into main branches[1][3].
- Use build tools like Terser (
-
Override
consolemethods conditionally:if (process.env.NODE_ENV === 'production') { console.log = () => {}; console.warn = () => {}; }
This silences logs in production while preserving them in development[3][9].
-
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].
-
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].
- Reserve
Alternatives to console.log
- Debugging modules: Libraries like
debugallow 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:
- 1: https://dev.to/lissy93/fun-with-consolelog-3i59
- 2: https://dev.to/ackshaey/level-up-your-javascript-browser-logs-with-these-console-log-tips-55o2
- 3: https://hackernoon.com/how-to-remove-console-statements-from-production-build-in-3-easy-ways
- 4: https://betterstack.com/community/guides/logging/nodejs-logging-best-practices/
- 5: https://www.codingzeal.com/post/debug-as-code
- 6: https://www.freecodecamp.org/news/console-logging-tips/
- 7: https://dev.to/danyson/why-you-should-not-use-console-log-for-debugging-4pgg
- 8: https://bugfender.com/blog/javascript-console-log/
- 9: https://dev.to/sharmakushal/hide-all-console-logs-in-production-with-just-3-lines-of-code-pp4
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).
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
1 similar comment
✅ Actions performedFull review triggered. |
There was a problem hiding this 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 issueRemove 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 issueUnused variable detected.
The
vim_govariable is defined but not included in the return statement (lines 355-360), making it unused. If this is intended to replace the removedvim_go.luafile, 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/ThePrimeagenmight 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
📒 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
termguicolorsfrom 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 luaLength of output: 458
Ensure the Change to Disable True Colors Is Intentional
Disablingtermguicolorsininit.lua(line 38) turns off true color support, which may negatively affect the appearance of our current colorscheme. Notably,lua/custom/plugins/colorscheme.luaexplicitly sets therose-pinecolorscheme (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 | |||
There was a problem hiding this comment.
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
| 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, | ||
| } |
There was a problem hiding this comment.
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.
| 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, | |
| } |
Summary by CodeRabbit
Documentation
New Features
Refactor
Chores