feat: add tvm_ffi_navigator server (#3261)

Add the [TVM FFI navigator](https://github.com/tqchen/ffi-navigator)
server configuration, which is used within the TVM project to jump to
C++ definitions from python and vice versa
This commit is contained in:
Anirudh 2024-08-07 15:21:11 +05:30 committed by GitHub
parent 6c505d4220
commit 462b1d8ba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,19 @@
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'python', '-m', 'ffi_navigator.langserver' },
filetypes = { 'python', 'cpp' },
root_dir = util.root_pattern('pyproject.toml', '.git'),
},
docs = {
description = [[
https://github.com/tqchen/ffi-navigator
The Language Server for FFI calls in TVM to be able jump between python and C++
FFI navigator can be installed with `pip install ffi-navigator`, buf for more details, please see
https://github.com/tqchen/ffi-navigator?tab=readme-ov-file#installation
]],
},
}