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

Feature/User config #2

Merged
merged 9 commits into from
Feb 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: format
  • Loading branch information
genzyy committed Feb 17, 2024
commit 7dbb8894e0c8ada9316cae670557008fd042bc90
12 changes: 5 additions & 7 deletions lua/embark/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--- @class StyleProps
--- @field bold boolean
--- @field italic boolean
local style_props = {

Check warning on line 9 in lua/embark/init.lua

View workflow job for this annotation

GitHub Actions / Lint

unused variable style_props

Check warning on line 9 in lua/embark/init.lua

View workflow job for this annotation

GitHub Actions / Lint

unused variable style_props
bold = true,
italic = true,
}
Expand All @@ -19,7 +19,7 @@
keywords = { bold = true, italic = true },
--- @type StyleProps
comments = { bold = false, italic = true },
}
},
}

--- @param config EmbarkConf?
Expand All @@ -34,8 +34,8 @@
comments = {
italic = config.styles.comments.italic or M.config.styles.comments.italic,
bold = config.styles.comments.bold or M.config.styles.comments.bold,
}
}
},
},
}
end
end
Expand Down Expand Up @@ -86,8 +86,7 @@
highlight(0, 'ModeMsg', { fg = colors.norm_subtle })

-- Comments
highlight(0, 'Comment',
{ fg = colors.norm_subtle, bold = M.config.styles.comments.bold, italic = M.config.styles.comments.italic })
highlight(0, 'Comment', { fg = colors.norm_subtle, bold = M.config.styles.comments.bold, italic = M.config.styles.comments.italic })

-- Functions
highlight(0, 'Function', { fg = colors.red })
Expand Down Expand Up @@ -332,8 +331,7 @@
highlight(0, '@lsp.type.operator', { link = '@operator' })
highlight(0, '@lsp.type.parameter', { link = '@parameter' })
highlight(0, '@lsp.type.property', { link = '@property' })
highlight(0, '@lsp.type.selfKeyword',
{ link = '@variable.builtin', bold = M.config.styles.keywords.bold, italic = M.config.styles.keywords.italic, })
highlight(0, '@lsp.type.selfKeyword', { link = '@variable.builtin', bold = M.config.styles.keywords.bold, italic = M.config.styles.keywords.italic })
highlight(0, '@lsp.type.selfParameter', { link = '@variable.builtin' })
highlight(0, '@lsp.type.string', { link = '@string' })
highlight(0, '@lsp.type.struct', { link = '@type' })
Expand Down
Loading