From 23d53b5d7bc2f31eed672c0a8d26dc608fb6d0ba Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Mon, 4 Aug 2025 07:45:42 -0500 Subject: feat(nvim) slim down new config --- dot_config/nvim_new/lsp/pyrefly.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dot_config/nvim_new/lsp/pyrefly.lua (limited to 'dot_config/nvim_new/lsp/pyrefly.lua') diff --git a/dot_config/nvim_new/lsp/pyrefly.lua b/dot_config/nvim_new/lsp/pyrefly.lua new file mode 100644 index 0000000..e8ac037 --- /dev/null +++ b/dot_config/nvim_new/lsp/pyrefly.lua @@ -0,0 +1,25 @@ +---@brief +--- +--- https://pyrefly.org/ +--- +---`pyrefly`, a faster Python type checker written in Rust. +-- +-- `pyrefly` is still in development, so please report any errors to +-- our issues page at https://github.com/facebook/pyrefly/issues. + +return { + cmd = { 'pyrefly', 'lsp' }, + filetypes = { 'python' }, + root_markers = { + 'pyrefly.toml', + 'pyproject.toml', + 'setup.py', + 'setup.cfg', + 'requirements.txt', + 'Pipfile', + '.git', + }, + on_exit = function(code, _, _) + vim.notify('Closing Pyrefly LSP exited with code: ' .. code, vim.log.levels.INFO) + end, +} -- cgit v1.2.3