프로젝트
GitHub에서 보기 
VidocqH/lsp-lens.nvim
소개
Neovim plugin for displaying references and difinition infos upon functions like JB's IDEA.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originallsp-lens.nvim
Neovim plugin for displaying reference and definition info upon functions like JB's IDEA.

Installation
Prerequisite
neovim >= 0.8
lsp server correctly setup
Lazy
require("lazy").setup({
'VidocqH/lsp-lens.nvim'
})
Usage
require'lsp-lens'.setup({})
Configs
Below is the default config
local SymbolKind = vim.lsp.protocol.SymbolKind
require'lsp-lens'.setup({
enable = true,
include_declaration = false, -- Reference include declaration
sections = { -- Enable / Disable specific request, formatter example looks 'Format Requests'
definition = false,
references = true,
implements = true,
git_authors = true,
},
ignore_filetype = {
"prisma",
},
-- Target Symbol Kinds to show lens information
target_symbol_kinds = { SymbolKind.Function, SymbolKind.Method, SymbolKind.Interface },
-- Symbol Kinds that may have target symbol kinds as children
wrapper_symbol_kinds = { SymbolKind.Class, SymbolKind.Struct },
})
Format Requests
require'lsp-lens'.setup({
sections = {
definition = function(count)
return "Definitions: " .. count
end,
references = function(count)
return "References: " .. count
end,
implements = function(count)
return "Implements: " .. count
end,
git_authors = function(latest_author, count)
return " " .. latest_author .. (count - 1 == 0 and "" or (" + " .. count - 1))
end,
}
})
Commands
:LspLensOn
:LspLensOff
:LspLensToggle
Highlight
{
LspLens = { link = "Comment" },
}
Known Bug
- Due to a known issue with the neovim
nvim_buf_set_extmark()api, the function and method defined on the first line of the code may cause the len to display at the -1 index line, which is not visible.
Thanks
관련 프로젝트 살펴보기
불러오는 중…