From 0d14385b4c2bac62238e4785a413cb6c549b9ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 5 May 2024 13:39:43 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(hypr):=20set=20ruff?= =?UTF-8?q?=20as=20default=20ruff=20lsp=20intead=20of=20ruff-lsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/lang/python-extended.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/extras/lang/python-extended.lua b/.config/nvim/lua/plugins/extras/lang/python-extended.lua index adb6eaf8..47a6fa8d 100644 --- a/.config/nvim/lua/plugins/extras/lang/python-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/python-extended.lua @@ -1,6 +1,7 @@ -- LSP Server to use for Python. -- Set to "basedpyright" to use basedpyright instead of pyright. vim.g.lazyvim_python_lsp = "basedpyright" +vim.g.lazyvim_python_ruff = "ruff" return { { import = "lazyvim.plugins.extras.lang.python" }, @@ -50,7 +51,7 @@ return { }, }, }, - ruff = { + [vim.g.lazyvim_python_ruff] = { handlers = { ["textDocument/publishDiagnostics"] = function() end, },