mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
lsp ghost text optional config
This commit is contained in:
parent
9faad80261
commit
f60855a938
8 changed files with 149 additions and 36 deletions
|
@ -1,3 +1,4 @@
|
|||
vim.opt.lazyredraw = false
|
||||
return {
|
||||
{ "gelguy/wilder.nvim", enabled = false },
|
||||
{
|
||||
|
@ -7,23 +8,92 @@ return {
|
|||
"rcarriga/nvim-notify",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
event = "BufWinEnter",
|
||||
config = function()
|
||||
vim.opt.lazyredraw = false
|
||||
require("noice").setup({
|
||||
messages = {
|
||||
-- event = "BufWinEnter",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
messages = {
|
||||
enabled = false,
|
||||
},
|
||||
notify = {
|
||||
enabled = false,
|
||||
},
|
||||
lsp = {
|
||||
progress = {
|
||||
enabled = false,
|
||||
},
|
||||
notify = {
|
||||
enabled = false,
|
||||
},
|
||||
lsp = {
|
||||
progress = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<S-Enter>",
|
||||
function()
|
||||
require("noice").redirect(vim.fn.getcmdline())
|
||||
end,
|
||||
mode = "c",
|
||||
desc = "Redirect Cmdline",
|
||||
},
|
||||
{
|
||||
"<leader>snl",
|
||||
function()
|
||||
require("noice").cmd("last")
|
||||
end,
|
||||
desc = "Noice Last Message",
|
||||
},
|
||||
{
|
||||
"<leader>snh",
|
||||
function()
|
||||
require("noice").cmd("history")
|
||||
end,
|
||||
desc = "Noice History",
|
||||
},
|
||||
{
|
||||
"<leader>sna",
|
||||
function()
|
||||
require("noice").cmd("all")
|
||||
end,
|
||||
desc = "Noice All",
|
||||
},
|
||||
{
|
||||
"<c-f>",
|
||||
function()
|
||||
if not require("noice.lsp").scroll(4) then
|
||||
return "<c-f>"
|
||||
end
|
||||
end,
|
||||
silent = true,
|
||||
expr = true,
|
||||
desc = "Scroll forward",
|
||||
mode = { "i", "n", "s" },
|
||||
},
|
||||
{
|
||||
"<c-b>",
|
||||
function()
|
||||
if not require("noice.lsp").scroll(-4) then
|
||||
return "<c-b>"
|
||||
end
|
||||
end,
|
||||
silent = true,
|
||||
expr = true,
|
||||
desc = "Scroll backward",
|
||||
mode = { "i", "n", "s" },
|
||||
},
|
||||
},
|
||||
-- config = function()
|
||||
-- vim.opt.lazyredraw = false
|
||||
-- require("noice").setup({
|
||||
-- messages = {
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- notify = {
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- lsp = {
|
||||
-- progress = {
|
||||
-- enabled = false,
|
||||
-- },
|
||||
-- },
|
||||
-- })
|
||||
-- end,
|
||||
},
|
||||
{
|
||||
"hrsh7th/cmp-cmdline",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue