diff --git a/python.nix b/python.nix index 232a737..1f3ba5b 100644 --- a/python.nix +++ b/python.nix @@ -2,5 +2,16 @@ { home.packages = with pkgs; [ uv + (python3.withPackages (ps: with ps; [ + python-lsp-server + python-lsp-jsonrpc + python-lsp-black + python-lsp-ruff + pyls-isort + pyls-flake8 + flake8 + isort + black + ])) ]; } diff --git a/rcfiles/neovim.lua b/rcfiles/neovim.lua index e439f01..766174c 100644 --- a/rcfiles/neovim.lua +++ b/rcfiles/neovim.lua @@ -50,7 +50,6 @@ require("mason").setup({ require("mason-lspconfig").setup() -- General LSP settings --- from https://rsdlt.github.io/posts/rust-nvim-ide-guide-walkthrough-development-debug/ local sign = function(opts) vim.fn.sign_define(opts.name, { texthl = opts.name, @@ -63,6 +62,7 @@ sign({name = 'DiagnosticSignError', text = '🛑'}) sign({name = 'DiagnosticSignWarn', text = '⚠️'}) sign({name = 'DiagnosticSignHint', text = '💭'}) sign({name = 'DiagnosticSignInfo', text = '🗒️'}) +vim.lsp.enable('pylsp') vim.diagnostic.config({ virtual_text = false,