Skip to content

Commit 2d0cbe4

Browse files
author
Juan Manuel Rocha Magalhães
committed
Added noice plugin to use noice UI
1 parent 44045d1 commit 2d0cbe4

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

lua/core/plugins/init.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ local plugins = {
185185
require 'core.plugins.copilot',
186186

187187
require 'core.plugins.markdown-preview',
188+
189+
require 'core.plugins.noice',
188190
}
189191

190192
local pluginOptions = {}

lua/core/plugins/noice.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
return {
2+
{
3+
"folke/noice.nvim",
4+
event = "VeryLazy",
5+
opts = {
6+
-- add any options here
7+
},
8+
dependencies = {
9+
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
10+
"MunifTanjim/nui.nvim",
11+
-- OPTIONAL:
12+
-- `nvim-notify` is only needed, if you want to use the notification view.
13+
-- If not available, we use `mini` as the fallback
14+
"rcarriga/nvim-notify",
15+
}
16+
}
17+
}

lua/core/setup/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ import('file-search')
44
import('syntax-highlight')
55
import('language-servers')
66
import('completion-engine')
7+
import('noice')

lua/core/setup/noice.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require("noice").setup({
2+
lsp = {
3+
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
4+
override = {
5+
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
6+
["vim.lsp.util.stylize_markdown"] = true,
7+
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
8+
},
9+
},
10+
-- you can enable a preset for easier configuration
11+
presets = {
12+
bottom_search = true, -- use a classic bottom cmdline for search
13+
command_palette = true, -- position the cmdline and popupmenu together
14+
long_message_to_split = true, -- long messages will be sent to a split
15+
inc_rename = false, -- enables an input dialog for inc-rename.nvim
16+
lsp_doc_border = false, -- add a border to hover docs and signature help
17+
},
18+
})

0 commit comments

Comments
 (0)