feat: add noice
This commit is contained in:
parent
d83aa05513
commit
2eca526544
1
init.lua
1
init.lua
@ -18,6 +18,7 @@ vim.api.nvim_create_autocmd('User', {
|
||||
require 'config.autocmd'
|
||||
require 'feline'
|
||||
require 'nvim-treesitter'
|
||||
require 'noice'
|
||||
end,
|
||||
})
|
||||
|
||||
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user