
* feat: init lazy.nvim * refactor: easy plugin init * feat: user defined plugins * refactor: clean up user config * refactor: clean up lsp plugins * fix: lsp signature * fix: null ls user config * feat: replace commands * feat: optimize lazy loading * fix: lsp_signature working * fix: documentation hover/sig help * fix: autopairs * feat: clean up luasnips * fix auto complete * moar laziness * feat: add markdown_inline to ensured_installed for TS * clean up * clean up auto-session
41 lines
1,008 B
Lua
41 lines
1,008 B
Lua
local user_config = require('cosmic.core.user')
|
|
local u = require('cosmic.utils')
|
|
|
|
return {
|
|
'folke/noice.nvim',
|
|
config = function()
|
|
local config = u.merge({
|
|
presets = {
|
|
lsp_doc_border = true,
|
|
},
|
|
views = {
|
|
notify = {
|
|
merge = true,
|
|
},
|
|
},
|
|
lsp = {
|
|
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
|
hover = {
|
|
enabled = true,
|
|
},
|
|
signature = {
|
|
enabled = true,
|
|
},
|
|
override = {
|
|
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
|
|
['vim.lsp.util.stylize_markdown'] = true,
|
|
-- @TODO: why doesn't this work?
|
|
['cmp.entry.get_documentation'] = false,
|
|
},
|
|
},
|
|
}, user_config.plugins.noice or {})
|
|
|
|
require('noice').setup(config)
|
|
require('cosmic.plugins.noice.mappings')
|
|
end,
|
|
event = 'VeryLazy',
|
|
dependencies = {
|
|
'MunifTanjim/nui.nvim',
|
|
'rcarriga/nvim-notify',
|
|
},
|
|
}
|