Skip to content

Set breakpoint icons and their highlight colors#1194

Merged
feoh merged 2 commits into
nvim-lua:masterfrom
glmlm:breakpoint
Oct 30, 2024
Merged

Set breakpoint icons and their highlight colors#1194
feoh merged 2 commits into
nvim-lua:masterfrom
glmlm:breakpoint

Conversation

@glmlm

@glmlm glmlm commented Oct 18, 2024

Copy link
Copy Markdown
Contributor

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

@iton0

iton0 commented Oct 18, 2024

Copy link
Copy Markdown
Contributor

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

Comment thread lua/kickstart/plugins/debug.lua Outdated
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
Copy Markdown
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

@glmlm glmlm Oct 20, 2024

Copy link
Copy Markdown
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

feoh commented Oct 30, 2024

Copy link
Copy Markdown
Collaborator

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

iton0 commented Oct 30, 2024

Copy link
Copy Markdown
Contributor

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

feoh commented Oct 30, 2024

Copy link
Copy Markdown
Collaborator

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

@feoh feoh merged commit be678aa into nvim-lua:master Oct 30, 2024
@glmlm glmlm deleted the breakpoint branch November 14, 2024 12:15
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