mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
Update 2025-03-08 Update 2025-03-09 Update 2025-03-10 Update 2025-03-12 Update 2025-03-15 Update 2025-03-16 Update 2025-03-17 Update 2025-03-18 Update 2025-03-21 Update 2025-03-23 Update 2025-03-27 Update 2025-03-28 Update 2025-03-30
92 lines
2.9 KiB
Lua
92 lines
2.9 KiB
Lua
return {
|
|
"xzbdmw/colorful-menu.nvim",
|
|
opts = {
|
|
ls = {
|
|
lua_ls = {
|
|
-- Maybe you want to dim arguments a bit.
|
|
arguments_hl = "@comment",
|
|
},
|
|
gopls = {
|
|
-- By default, we render variable/function's type in the right most side,
|
|
-- to make them not to crowd together with the original label.
|
|
|
|
-- when true:
|
|
-- foo *Foo
|
|
-- ast "go/ast"
|
|
|
|
-- when false:
|
|
-- foo *Foo
|
|
-- ast "go/ast"
|
|
align_type_to_right = true,
|
|
-- When true, label for field and variable will format like "foo: Foo"
|
|
-- instead of go's original syntax "foo Foo". If align_type_to_right is
|
|
-- true, this option has no effect.
|
|
add_colon_before_type = true,
|
|
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
|
|
preserve_type_when_truncate = true,
|
|
},
|
|
-- for lsp_config or typescript-tools
|
|
ts_ls = {
|
|
-- false means do not include any extra info,
|
|
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
|
|
extra_info_hl = "@comment",
|
|
},
|
|
vtsls = {
|
|
-- false means do not include any extra info,
|
|
-- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42
|
|
extra_info_hl = "@comment",
|
|
},
|
|
["rust-analyzer"] = {
|
|
-- Such as (as Iterator), (use std::io).
|
|
extra_info_hl = "@comment",
|
|
-- Similar to the same setting of gopls.
|
|
align_type_to_right = true,
|
|
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
|
|
preserve_type_when_truncate = true,
|
|
},
|
|
clangd = {
|
|
-- Such as "From <stdio.h>".
|
|
extra_info_hl = "@comment",
|
|
-- Similar to the same setting of gopls.
|
|
align_type_to_right = true,
|
|
-- the hl group of leading dot of "•std::filesystem::permissions(..)"
|
|
import_dot_hl = "@comment",
|
|
-- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36
|
|
preserve_type_when_truncate = true,
|
|
},
|
|
zls = {
|
|
-- Similar to the same setting of gopls.
|
|
align_type_to_right = true,
|
|
},
|
|
roslyn = {
|
|
extra_info_hl = "@comment",
|
|
},
|
|
dartls = {
|
|
extra_info_hl = "@comment",
|
|
},
|
|
-- The same applies to pyright/pylance
|
|
basedpyright = {
|
|
-- It is usually import path such as "os"
|
|
extra_info_hl = "@comment",
|
|
},
|
|
-- If true, try to highlight "not supported" languages.
|
|
fallback = true,
|
|
-- this will be applied to label description for unsupport languages
|
|
fallback_extra_info_hl = "@comment",
|
|
},
|
|
-- If the built-in logic fails to find a suitable highlight group for a label,
|
|
-- this highlight is applied to the label.
|
|
fallback_highlight = "@variable",
|
|
-- If provided, the plugin truncates the final displayed text to
|
|
-- this width (measured in display cells). Any highlights that extend
|
|
-- beyond the truncation point are ignored. When set to a float
|
|
-- between 0 and 1, it'll be treated as percentage of the width of
|
|
-- the window: math.floor(max_width * vim.api.nvim_win_get_width(0))
|
|
-- Default 60.
|
|
max_width = 80,
|
|
},
|
|
config = function(_, opts)
|
|
require("colorful-menu").setup(opts)
|
|
end,
|
|
}
|