feat(plugins): clean up cosmic-ui integration
This commit is contained in:
parent
efb15a9c55
commit
880ccdb624
2 changed files with 8 additions and 20 deletions
|
@ -67,13 +67,15 @@ config.lsp = {
|
|||
hover = {},
|
||||
signature_help = {},
|
||||
}
|
||||
|
||||
-- See https://github.com/rmagatti/auto-session#%EF%B8%8F-configuration
|
||||
config.auto_session = {}
|
||||
|
||||
-- https://github.com/numToStr/Comment.nvim#configuration-optional
|
||||
config.comments = {}
|
||||
|
||||
-- See https://github.com/CosmicNvim/cosmic-ui#%EF%B8%8F-configuration
|
||||
config.cosmic_ui = {}
|
||||
|
||||
-- See https://github.com/folke/todo-comments.nvim#%EF%B8%8F-configuration
|
||||
config.todo_comments = {}
|
||||
|
||||
|
|
|
@ -1,23 +1,9 @@
|
|||
local diagnostic = {}
|
||||
local hover = {}
|
||||
local signature_help = {}
|
||||
local user_config = require('cosmic.config')
|
||||
local config = require('cosmic.config')
|
||||
local icons = require('cosmic.theme.icons')
|
||||
|
||||
if user_config and user_config.lsp and user_config.lsp.diagnostic then
|
||||
diagnostic = user_config.lsp.diagnostic
|
||||
end
|
||||
if user_config and user_config.lsp and user_config.lsp.hover then
|
||||
hover = user_config.lsp.hover
|
||||
end
|
||||
if user_config and user_config.lsp and user_config.lsp.signature_help then
|
||||
signature_help = user_config.lsp.signature_help
|
||||
end
|
||||
|
||||
require('cosmic-ui').setup({
|
||||
local defaults = {
|
||||
border = 'rounded',
|
||||
icons = icons,
|
||||
diagnostic = diagnostic,
|
||||
hover = hover,
|
||||
signature_help = signature_help,
|
||||
})
|
||||
}
|
||||
|
||||
require('cosmic-ui').setup(vim.tbl_deep_extend('force', defaults, config.cosmic_ui or {}))
|
||||
|
|
Loading…
Add table
Reference in a new issue