mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-27 03:08:56 +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
|
@ -12,7 +12,7 @@
|
|||
-- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha
|
||||
-- dracula
|
||||
-- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox
|
||||
vim.g.pcode_colorscheme = "gruvbox-baby"
|
||||
vim.g.pcode_colorscheme = "tokyonight"
|
||||
|
||||
-- custom transparent mode
|
||||
-- only support
|
||||
|
@ -31,7 +31,7 @@ vim.g.pcode_transparent_mode = 0
|
|||
-- 0 disable progress
|
||||
-- 1 lualine lsp progress
|
||||
-- 2 fidget progress
|
||||
vim.g.pcode_progress = 1
|
||||
vim.g.pcode_progress = 2
|
||||
|
||||
-- style
|
||||
-- 0 = default
|
||||
|
@ -85,7 +85,10 @@ vim.g.pcode_lsp_installer = {
|
|||
}
|
||||
|
||||
-- use for lsp diagnostics virtual text
|
||||
vim.g.pcode_lsp_virtualtext = false
|
||||
vim.g.pcode_lsp_virtualtext = true
|
||||
|
||||
-- use for lsp ghost text config
|
||||
vim.g.pcode_lspghost_text = true
|
||||
|
||||
-- untuk referesi support language kunjungi link dibawah
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||
|
@ -145,3 +148,6 @@ vim.g.pcode_coderunner = {
|
|||
vim.g.pcode_cmprg = false --https://github.com/lukas-reineke/cmp-rg
|
||||
vim.g.pcode_cmpcalc = false --https://github.com/hrsh7th/cmp-calc
|
||||
vim.g.pcode_cmptag = false --https://github.com/quangnguyen30192/cmp-nvim-tags
|
||||
|
||||
-- load nvim-tree or not
|
||||
vim.g.pcode_loadnvimtree_lazy = true
|
||||
|
|
|
@ -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