Skip to content

Commit bc52de6

Browse files
committed
feat(vim): add noice plugin
1 parent 5733ae7 commit bc52de6

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

config/nvim/lua/plugins/treesitter.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ return {
3838
"markdown_inline",
3939
"pug",
4040
"python",
41+
"regex",
4142
"ruby",
4243
"rust",
4344
"tsx",

config/nvim/lua/plugins/ui.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,43 @@ return {
2323
},
2424
},
2525
},
26+
{
27+
"folke/noice.nvim",
28+
event = "VeryLazy",
29+
opts = {
30+
-- add any options here
31+
lsp = {
32+
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
33+
override = {
34+
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
35+
["vim.lsp.util.stylize_markdown"] = true,
36+
["cmp.entry.get_documentation"] = true,
37+
},
38+
},
39+
-- you can enable a preset for easier configuration
40+
presets = {
41+
bottom_search = true, -- use a classic bottom cmdline for search
42+
command_palette = true, -- position the cmdline and popupmenu together
43+
long_message_to_split = true, -- long messages will be sent to a split
44+
inc_rename = false, -- enables an input dialog for inc-rename.nvim
45+
lsp_doc_border = true, -- add a border to hover docs and signature help
46+
},
47+
routes = {
48+
{
49+
filter = { find = "No information available" },
50+
opts = { stop = true },
51+
},
52+
},
53+
},
54+
dependencies = {
55+
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
56+
"MunifTanjim/nui.nvim",
57+
-- OPTIONAL:
58+
-- `nvim-notify` is only needed, if you want to use the notification view.
59+
-- If not available, we use `mini` as the fallback
60+
"rcarriga/nvim-notify",
61+
},
62+
},
2663

2764
-- file drawer plugin
2865
{

0 commit comments

Comments
 (0)