diff options
| author | Fabian <copy@copy.sh> | 2021-10-22 10:42:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-22 01:42:22 -0700 |
| commit | 287a62910a60029e9a1901fa664968b6a9ffddd9 (patch) | |
| tree | aa8ba247f93087590cc464e467803c170173a021 /lua | |
| parent | docs: update CONFIG.md (diff) | |
| download | nvim-lspconfig-287a62910a60029e9a1901fa664968b6a9ffddd9.tar nvim-lspconfig-287a62910a60029e9a1901fa664968b6a9ffddd9.tar.gz nvim-lspconfig-287a62910a60029e9a1901fa664968b6a9ffddd9.tar.bz2 nvim-lspconfig-287a62910a60029e9a1901fa664968b6a9ffddd9.tar.lz nvim-lspconfig-287a62910a60029e9a1901fa664968b6a9ffddd9.tar.xz nvim-lspconfig-287a62910a60029e9a1901fa664968b6a9ffddd9.tar.zst nvim-lspconfig-287a62910a60029e9a1901fa664968b6a9ffddd9.zip | |
feat: add fstar language server (#1280)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/fstar.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/fstar.lua b/lua/lspconfig/fstar.lua new file mode 100644 index 00000000..8618e070 --- /dev/null +++ b/lua/lspconfig/fstar.lua @@ -0,0 +1,21 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.fstar = { + default_config = { + cmd = { 'fstar.exe', '--lsp' }, + filetypes = { 'fstar' }, + root_dir = util.root_pattern '.git', + }, + docs = { + description = [[ +https://github.com/FStarLang/FStar + +LSP support is included in FStar. Make sure `fstar.exe` is in your PATH. +``` + ]], + default_config = { + root_dir = [[root_pattern(".git")]], + }, + }, +} |
