feat: add noice

This commit is contained in:
fiplox 2023-04-09 00:44:17 +02:00
parent d83aa05513
commit 2eca526544
2 changed files with 28 additions and 1 deletions

View File

@ -18,6 +18,7 @@ vim.api.nvim_create_autocmd('User', {
require 'config.autocmd'
require 'feline'
require 'nvim-treesitter'
require 'noice'
end,
})

View File

@ -3,7 +3,7 @@ return {
'nvim-lua/plenary.nvim',
'mfussenegger/nvim-jdtls',
'simrat39/rust-tools.nvim',
-- 'MunifTanjim/nui.nvim',
'MunifTanjim/nui.nvim',
-- 'rcarriga/cmp-dap',
{
'phaazon/hop.nvim', -- event = 'BufRead',
@ -33,4 +33,30 @@ return {
}
end,
},
{
'folke/noice.nvim',
config = function()
require('noice').setup {
cmdline = {
enabled = true,
view = 'cmdline', -- view for rendering the cmdline. Change to `cmdline` to get a classic cmdline at the bottom
},
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = false, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = true, -- add a border to hover docs and signature help
},
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
['vim.lsp.util.stylize_markdown'] = true,
['cmp.entry.get_documentation'] = true,
},
},
}
end,
},
}