mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-05 08:36:09 +02:00
feat: ctags_lsp #4399
This commit is contained in:
parent
e146efacba
commit
766ebf8406
28
lsp/ctags_lsp.lua
Normal file
28
lsp/ctags_lsp.lua
Normal file
@ -0,0 +1,28 @@
|
||||
---@brief
|
||||
---
|
||||
--- https://github.com/netmute/ctags-lsp
|
||||
---
|
||||
--- A simple LSP server wrapping universal-ctags. Provides completion,
|
||||
--- go-to-definition, and document/workspace symbols. Useful as a generic
|
||||
--- symbol provider for languages without a dedicated language server, or
|
||||
--- as a fallback alongside other LSPs.
|
||||
---
|
||||
--- Requires `universal-ctags` to be installed and available in `$PATH`.
|
||||
--- Pre-built binaries are at https://github.com/netmute/ctags-lsp/releases
|
||||
--- (Homebrew: `brew install netmute/tap/ctags-lsp`).
|
||||
---
|
||||
--- The server is generic and does not declare default `filetypes`. Configure
|
||||
--- the languages you want it to attach to:
|
||||
---
|
||||
--- ```lua
|
||||
--- vim.lsp.config('ctags_lsp', {
|
||||
--- filetypes = { 'lua', 'ruby', 'go' },
|
||||
--- })
|
||||
--- vim.lsp.enable('ctags_lsp')
|
||||
--- ```
|
||||
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { 'ctags-lsp' },
|
||||
root_markers = { 'tags', '.tags', '.git' },
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user