feat: made cmdline more beautiful
This commit is contained in:
parent
7a0e05991d
commit
807a15b5b3
5 changed files with 70 additions and 0 deletions
16
lua/custom/plugins/markview.lua
Normal file
16
lua/custom/plugins/markview.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
"OXY2DEV/markview.nvim",
|
||||
lazy = false,
|
||||
|
||||
priority = 49,
|
||||
config = function()
|
||||
require("markview").setup {
|
||||
preview = {
|
||||
filetypes = { "markdown", "latex" },
|
||||
},
|
||||
latex = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
48
lua/custom/plugins/noice.lua
Normal file
48
lua/custom/plugins/noice.lua
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
return {
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- add any options here
|
||||
},
|
||||
dependencies = {
|
||||
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("noice").setup {
|
||||
views = {
|
||||
cmdline_popup = {
|
||||
position = {
|
||||
row = "50%",
|
||||
col = "50%",
|
||||
},
|
||||
popupmenu = {
|
||||
relative = "cmdline",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- you can enable a preset for easier configuration
|
||||
presets = {
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
-- command_palette = true, -- 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 = false, -- add a border to hover docs and signature help
|
||||
},
|
||||
messages = {
|
||||
enabled = false,
|
||||
},
|
||||
notify = {
|
||||
enabled = false,
|
||||
},
|
||||
commands = {
|
||||
enabled = false,
|
||||
},
|
||||
lsp = {
|
||||
progress = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue