add noice & add script to show code actions menu with right mouse
This commit is contained in:
parent
fa43825712
commit
1c0761116f
3 changed files with 35 additions and 2 deletions
9
init.lua
9
init.lua
|
|
@ -52,3 +52,12 @@ vim.cmd.colorscheme "catppuccin"
|
||||||
opt.background = "light"
|
opt.background = "light"
|
||||||
|
|
||||||
require("mappings")
|
require("mappings")
|
||||||
|
|
||||||
|
camenu = require("camenu")
|
||||||
|
-- bind right click to open camenu
|
||||||
|
vim.keymap.set("n", "<RightMouse>", "<LeftMouse>:lua require('camenu').calistener()<CR>")
|
||||||
|
-- vim.keymap.set(
|
||||||
|
-- "n",
|
||||||
|
-- "<RightRelease>",
|
||||||
|
-- camenu.calistener
|
||||||
|
-- )
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ require("mason-lspconfig").setup_handlers {
|
||||||
require("lspconfig").ltex.setup {
|
require("lspconfig").ltex.setup {
|
||||||
settings = {
|
settings = {
|
||||||
ltex = {
|
ltex = {
|
||||||
language = "fr-FR",
|
language = "fr",
|
||||||
},
|
},
|
||||||
-- set formatter
|
-- set formatter
|
||||||
formatters = {
|
formatters = {
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ local plugins = {
|
||||||
mason = true,
|
mason = true,
|
||||||
neogit = true,
|
neogit = true,
|
||||||
illuminate = false,
|
illuminate = false,
|
||||||
|
noice = true,
|
||||||
telescope = {
|
telescope = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
style = "nvchad"
|
style = "nvchad"
|
||||||
|
|
@ -332,7 +333,30 @@ local plugins = {
|
||||||
config = true
|
config = true
|
||||||
},
|
},
|
||||||
{ "RRethy/vim-illuminate" },
|
{ "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
|
return plugins
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue