diff --git a/init.lua b/init.lua index 9d0c670..cb30070 100644 --- a/init.lua +++ b/init.lua @@ -52,3 +52,12 @@ vim.cmd.colorscheme "catppuccin" opt.background = "light" require("mappings") + +camenu = require("camenu") +-- bind right click to open camenu +vim.keymap.set("n", "", ":lua require('camenu').calistener()") +-- vim.keymap.set( +-- "n", +-- "", +-- camenu.calistener +-- ) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 27052d2..2e7b610 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -36,7 +36,7 @@ require("mason-lspconfig").setup_handlers { require("lspconfig").ltex.setup { settings = { ltex = { - language = "fr-FR", + language = "fr", }, -- set formatter formatters = { diff --git a/lua/plugins.lua b/lua/plugins.lua index 486e304..5561f43 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -70,6 +70,7 @@ local plugins = { mason = true, neogit = true, illuminate = false, + noice = true, telescope = { enabled = true, style = "nvchad" @@ -332,7 +333,30 @@ local plugins = { config = true }, { "RRethy/vim-illuminate" }, - { "ofseed/lualine-copilot" } + { "ofseed/lualine-copilot" }, + { + "folke/noice.nvim", + event = "VeryLazy", + opts = { + 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 + }, + }, + dependencies = { + -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries + "MunifTanjim/nui.nvim", + -- OPTIONAL: + -- `nvim-notify` is only needed, if you want to use the notification view. + -- If not available, we use `mini` as the fallback + "rcarriga/nvim-notify", + } + } } return plugins