diff --git a/lua/cosmic/config/examples/config.lua b/lua/cosmic/config/examples/config.lua index 3840a56..9e4f54c 100644 --- a/lua/cosmic/config/examples/config.lua +++ b/lua/cosmic/config/examples/config.lua @@ -87,8 +87,6 @@ local config = { -- you may use <leader>ld to toggle enable_on_start = true, }, - -- See https://github.com/ray-x/lsp_signature.nvim#full-configuration-with-default-values - lsp_signature = {}, -- See https://github.com/nvim-lualine/lualine.nvim#default-configuration lualine = {}, -- See https://github.com/L3MON4D3/LuaSnip/blob/577045e9adf325e58f690f4d4b4a293f3dcec1b3/README.md#config diff --git a/lua/cosmic/plugins/noice/init.lua b/lua/cosmic/plugins/noice/init.lua index 00f1844..b39fd11 100644 --- a/lua/cosmic/plugins/noice/init.lua +++ b/lua/cosmic/plugins/noice/init.lua @@ -15,6 +15,16 @@ return { merge = true, }, }, + messages = { + -- NOTE: If you enable messages, then the cmdline is enabled automatically. + -- This is a current Neovim limitation. + enabled = true, -- enables the Noice messages UI + view = 'mini', -- default view for messages + view_error = 'notify', -- view for errors + view_warn = 'notify', -- view for warnings + view_history = 'messages', -- view for :messages + view_search = 'virtualtext', -- view for search count messages. Set to `false` to disable + }, lsp = { -- override markdown rendering so that **cmp** and other plugins use **Treesitter** hover = { @@ -23,6 +33,12 @@ return { signature = { enabled = true, }, + message = { + -- Messages shown by lsp servers + enabled = true, + view = 'mini', + opts = {}, + }, override = { ['vim.lsp.util.convert_input_to_markdown_lines'] = true, ['vim.lsp.util.stylize_markdown'] = true, @@ -48,6 +64,8 @@ return { event = 'VeryLazy', dependencies = { 'MunifTanjim/nui.nvim', - 'rcarriga/nvim-notify', + { 'rcarriga/nvim-notify', opts = { + timeout = 1000, + } }, }, }