Skip to content
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

Set breakpoint icons and their highlight colors #1194

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

gloomy-lemon-debatable
Copy link
Contributor

Set breakpoint icons and their highlight colors in lua/kickstart/plugins/debug.lua; see Here for details

@iton0
Copy link
Contributor

iton0 commented Oct 18, 2024

I think this should be a overall comment that users can uncomment if they want this change.

vim.api.nvim_set_hl(0, 'Break', { fg = '#e51400' })
vim.api.nvim_set_hl(0, 'Stop', { fg = '#ffcc00' })
local breakpoint_icons = vim.g.have_nerd_font
and { Breakpoint = '', BreakpointCondition = '', BreakpointRejected = '', LogPoint = '', Stopped = '' }
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it be better to just have one table of icons

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for reviewing the code. With all due respect, that might not be possible.
If vim.g.have_nerd_font is false, the local variable breakpoint_icons would no longer exist.

Error that occurs when deleting the line:

Cannot assign `boolean|table` to parameter `<T:table>`.
   - `boolean` cannot match `table`
   - Type `boolean` cannot match `table` [param-type-mismatch]

feat: "Break" and "Stop" arguments of vim.api.nvim_set_hl are changed because they are too common nouns
feat: Comment out changes regarding diagnostic symbols so that only those who want to change them can do so
@feoh
Copy link
Collaborator

feoh commented Oct 30, 2024

Hi guys I have no feelings on this.

@iton0 Can you help me understand why you think this should just be optional?

Do you use/do other people use different conditional break symbols?

@iton0
Copy link
Contributor

iton0 commented Oct 30, 2024

I appreciate the overall addition, but I wanted to make it optional for caution's sake. This way, users can experience the default debugging setup first and choose to add features if they wish, rather than having to remove anything.

@feoh
Copy link
Collaborator

feoh commented Oct 30, 2024

Ah I failed to notice it's already commented out. merging!

@feoh feoh merged commit be678aa into nvim-lua:master Oct 30, 2024
1 check passed
codemedic added a commit to codemedic/kickstart.nvim that referenced this pull request Oct 30, 2024
* master:
  Remove two because there are more than two. (nvim-lua#1213)
  Set breakpoint icons and their highlight colors (nvim-lua#1194)
  Change diagnostic symbols if vim.g.have_nerd_font is true (nvim-lua#1195)
  samarth-nagar fix: lazy help tag on line 931 (nvim-lua#1167)
  Disable linting autocmd for readonly buffers (nvim-lua#1202)
  fix: update lazy uninstall information link (nvim-lua#1148)
feoh pushed a commit to feoh/kickstart.nvim that referenced this pull request Oct 30, 2024
* feat: Set breakpoint icons and their highlight colors

* docs: Delete reference URL (written in PR)
feat: "Break" and "Stop" arguments of vim.api.nvim_set_hl are changed because they are too common nouns
feat: Comment out changes regarding diagnostic symbols so that only those who want to change them can do so

---------

Co-authored-by: name <email>
whalderman pushed a commit to whalderman/kickstart.nvim that referenced this pull request Nov 3, 2024
* feat: Set breakpoint icons and their highlight colors

* docs: Delete reference URL (written in PR)
feat: "Break" and "Stop" arguments of vim.api.nvim_set_hl are changed because they are too common nouns
feat: Comment out changes regarding diagnostic symbols so that only those who want to change them can do so

---------

Co-authored-by: name <email>
ginjiruu pushed a commit to ginjiruu/kickstart.nvim that referenced this pull request Nov 4, 2024
* feat: Set breakpoint icons and their highlight colors

* docs: Delete reference URL (written in PR)
feat: "Break" and "Stop" arguments of vim.api.nvim_set_hl are changed because they are too common nouns
feat: Comment out changes regarding diagnostic symbols so that only those who want to change them can do so

---------

Co-authored-by: name <email>
Livingpool pushed a commit to Livingpool/kickstart.nvim that referenced this pull request Nov 5, 2024
* feat: Set breakpoint icons and their highlight colors

* docs: Delete reference URL (written in PR)
feat: "Break" and "Stop" arguments of vim.api.nvim_set_hl are changed because they are too common nouns
feat: Comment out changes regarding diagnostic symbols so that only those who want to change them can do so

---------

Co-authored-by: name <email>
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.

3 participants