From 2ef3e3401bdb34a2ad88f78f5ca8130e6ab3bfec Mon Sep 17 00:00:00 2001 From: Brandon Bennett Date: Mon, 15 Nov 2021 01:41:48 -0700 Subject: feat: add pyre language server. (#1139) --- lua/lspconfig/pyre.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lua/lspconfig/pyre.lua (limited to 'lua') diff --git a/lua/lspconfig/pyre.lua b/lua/lspconfig/pyre.lua new file mode 100644 index 00000000..8701f39b --- /dev/null +++ b/lua/lspconfig/pyre.lua @@ -0,0 +1,23 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.pyre = { + default_config = { + cmd = { 'pyre', 'persistent' }, + filetypes = { 'python' }, + root_dir = util.root_pattern '.pyre_configuration', + }, + docs = { + description = [[ +https://pyre-check.org/ + +`pyre` a static type checker for Python 3. + +`pyre` offers an extremely limited featureset. It currently only supports diagnostics, +which are triggered on save. + +Do not report issues for missing features in `pyre` to `lspconfig`. + +]], + }, +} -- cgit v1.2.3-70-g09d2