improve noice config
This commit is contained in:
parent
1c0761116f
commit
12264fa70a
3 changed files with 33 additions and 9 deletions
4
init.lua
4
init.lua
|
|
@ -53,9 +53,9 @@ opt.background = "light"
|
|||
|
||||
require("mappings")
|
||||
|
||||
camenu = require("camenu")
|
||||
-- camenu = require("camenu")
|
||||
-- bind right click to open camenu
|
||||
vim.keymap.set("n", "<RightMouse>", "<LeftMouse>:lua require('camenu').calistener()<CR>")
|
||||
-- vim.keymap.set("n", "<RightMouse>", "<LeftMouse>:lua require('camenu').calistener()<CR>")
|
||||
-- vim.keymap.set(
|
||||
-- "n",
|
||||
-- "<RightRelease>",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ local opts = {
|
|||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch', 'diff' },
|
||||
lualine_c = { 'filename' },
|
||||
lualine_x = { 'lsp_progress', 'diagnostics', 'filetype' },
|
||||
lualine_x = { 'diagnostics', 'filetype' },
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' }
|
||||
},
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ local plugins = {
|
|||
neogit = true,
|
||||
illuminate = false,
|
||||
noice = true,
|
||||
notify = true,
|
||||
telescope = {
|
||||
enabled = true,
|
||||
style = "nvchad"
|
||||
|
|
@ -159,7 +160,7 @@ local plugins = {
|
|||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
'arkav/lualine-lsp-progress',
|
||||
-- 'arkav/lualine-lsp-progress',
|
||||
},
|
||||
config = function()
|
||||
require('lualine').setup(require("configs.lualine"))
|
||||
|
|
@ -338,14 +339,30 @@ local plugins = {
|
|||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
messages = {
|
||||
view = "mini", -- default view for messages
|
||||
view_error = "notify", -- view for errors
|
||||
view_warn = "notify", -- view for warnings
|
||||
view_history = "messages", -- view for :messages
|
||||
view_search = "mini", -- view for search count messages. Set to `false` to disable
|
||||
},
|
||||
cmdline = {
|
||||
view = "cmdline",
|
||||
},
|
||||
views = {
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
presets = {
|
||||
-- you can enable a preset by setting it to true, or a table that will override the preset config
|
||||
-- you can also add custom presets that you can enable/disable with enabled=true
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
command_palette = true, -- position the cmdline and popupmenu together
|
||||
long_message_to_split = false, -- 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
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
|
|
@ -356,6 +373,13 @@ local plugins = {
|
|||
-- If not available, we use `mini` as the fallback
|
||||
"rcarriga/nvim-notify",
|
||||
}
|
||||
},
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
opts = {
|
||||
render = "minimal",
|
||||
stages = "static",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue