-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
plugins: Add ccc (new PR) #1365
Conversation
What does this error mean? |
The test is malformed. Probably an issue with my suggestion. You need to nest any options declared in
|
You would've been able to either push up more commits implementing the changes (the maintainers could then squash-merge them) or used one of many methods of amending history followed by a History can be edited several ways, such as
You can also use lazygit's interface to abstract a lot of that. I'd highly recommend learning some of gits fundamentals and advanced features when you get chance. |
Note that we can squash the commits when merging too |
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.
Looking good. I've left some comments on the options and nit-picked their descriptions a little.
Bear in mind I'm not a maintainer here, so take my feedback with a pinch of salt!
lsp = false; | ||
}; | ||
}; | ||
extraConfig = cfg: {opts.termguicolors = lib.mkDefault true;}; |
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.
nit: I'd add a blank line above for consistency
plugins/utils/ccc.nix
Outdated
''; | ||
|
||
lsp = helpers.defaultNullOpts.mkBool true '' | ||
Whether to enable nvim-lsp support. The color information is updated in the background and the result is used by `|:CccPick|` and highlighter. |
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.
Same comments as below
plugins/utils/ccc.nix
Outdated
''; | ||
|
||
lsp = helpers.defaultNullOpts.mkBool true '' | ||
If true, highlight using nvim-lsp. If LS with the color provider is not attached to a buffer, it falls back to highlight with pickers. See also `|ccc-option-lsp|`. |
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.
nvim-lsp
->LSP
If LS
->If a language server
- Description may be long enough to benefit from some line breaks?
- Does it make sense to include vimdoc links here? Or should it just be "`:CccPick`"
plugins/utils/ccc.nix
Outdated
|
||
highlighter = { | ||
auto_enable = helpers.defaultNullOpts.mkBool false '' | ||
Whether to enable automatically on BufEnter. |
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.
Nit: Wrap "BufEnter
" in backtiicks
plugins/utils/ccc.nix
Outdated
|
||
highlight_mode = helpers.defaultNullOpts.mkStr "bg" '' | ||
Option to highlight text foreground or background. It is used to output_line and highlighter. | ||
Options: `"fg" | "bg" | "foreground" | "background"` |
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.
This could be an enum
if those are the only valid values.
Also same comments regarding vim doc links (see below)
|
||
settingsOptions = { | ||
default_color = helpers.defaultNullOpts.mkStr "#000000" '' | ||
The default color used when a color cannot be picked. It must be HEX format. |
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.
Should there be a warning/assertion that this is a valid hex string?
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.
I don't think we ever check the validity of strings (apart from enumerations)
I changed the option to enum and addressed some of the comments on formatting. I wasn't sure how to format the text, went with 80 char max line width were it seemed appropriate. Is there a guideline for such styling? |
Not really. I use mostly 100 chars personally |
No description provided.