diff --git a/init.lua b/init.lua index cb30070..e4e4244 100644 --- a/init.lua +++ b/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", "", ":lua require('camenu').calistener()") +-- vim.keymap.set("n", "", ":lua require('camenu').calistener()") -- vim.keymap.set( -- "n", -- "", diff --git a/lua/configs/lualine.lua b/lua/configs/lualine.lua index ec8ecfb..eef854d 100644 --- a/lua/configs/lualine.lua +++ b/lua/configs/lualine.lua @@ -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' } }, diff --git a/lua/plugins.lua b/lua/plugins.lua index 5561f43..223bbda 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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", + } } }