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")
|
require("mappings")
|
||||||
|
|
||||||
camenu = require("camenu")
|
-- camenu = require("camenu")
|
||||||
-- bind right click to open 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(
|
-- vim.keymap.set(
|
||||||
-- "n",
|
-- "n",
|
||||||
-- "<RightRelease>",
|
-- "<RightRelease>",
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ local opts = {
|
||||||
lualine_a = { 'mode' },
|
lualine_a = { 'mode' },
|
||||||
lualine_b = { 'branch', 'diff' },
|
lualine_b = { 'branch', 'diff' },
|
||||||
lualine_c = { 'filename' },
|
lualine_c = { 'filename' },
|
||||||
lualine_x = { 'lsp_progress', 'diagnostics', 'filetype' },
|
lualine_x = { 'diagnostics', 'filetype' },
|
||||||
lualine_y = { 'progress' },
|
lualine_y = { 'progress' },
|
||||||
lualine_z = { 'location' }
|
lualine_z = { 'location' }
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ local plugins = {
|
||||||
neogit = true,
|
neogit = true,
|
||||||
illuminate = false,
|
illuminate = false,
|
||||||
noice = true,
|
noice = true,
|
||||||
|
notify = true,
|
||||||
telescope = {
|
telescope = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
style = "nvchad"
|
style = "nvchad"
|
||||||
|
|
@ -159,7 +160,7 @@ local plugins = {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-tree/nvim-web-devicons',
|
'nvim-tree/nvim-web-devicons',
|
||||||
'arkav/lualine-lsp-progress',
|
-- 'arkav/lualine-lsp-progress',
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('lualine').setup(require("configs.lualine"))
|
require('lualine').setup(require("configs.lualine"))
|
||||||
|
|
@ -338,14 +339,30 @@ local plugins = {
|
||||||
"folke/noice.nvim",
|
"folke/noice.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = {
|
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 = {
|
presets = {
|
||||||
-- you can enable a preset by setting it to true, or a table that will override the preset config
|
-- 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
|
-- you can also add custom presets that you can enable/disable with enabled=true
|
||||||
bottom_search = true, -- use a classic bottom cmdline for search
|
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
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|
@ -356,6 +373,13 @@ local plugins = {
|
||||||
-- If not available, we use `mini` as the fallback
|
-- If not available, we use `mini` as the fallback
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
opts = {
|
||||||
|
render = "minimal",
|
||||||
|
stages = "static",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue