From b42cc85decd6455111e9b41e29d5235e6d6bd6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Wed, 1 Nov 2023 09:46:49 +0100 Subject: [PATCH] nix: Add language server missing from Ansible --- config/nix/hm/vim.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/config/nix/hm/vim.nix b/config/nix/hm/vim.nix index 6cfbaf3..8407289 100644 --- a/config/nix/hm/vim.nix +++ b/config/nix/hm/vim.nix @@ -129,34 +129,44 @@ in # FIXME ansiblels bashls.enable = true; # Bash jsonls.enable = true; # JSON + lua-ls.enable = true; # Lua (for Neovim debugging) # FIXME perlls - pylsp = { # Python + pylsp = { + # Python enable = true; settings.plugins = { black.enabled = true; - flake8.enabled = true; # FIXME Not getting the warnings I would expect + flake8.enabled = true; isort.enabled = true; + mccabe.enabled = true; + pycodestyle.enabled = true; + pyflakes.enabled = true; + pylint.enabled = true; pylsp_mypy.enabled = true; + # FIXME Somehow no warning is shown + # TODO Could add some, could also remove some }; }; # FIXME phpactor. Only from 23.11 # phpactor.enable = true; # PHP rnix-lsp.enable = true; # Nix # FIXME sqlls - yamlls.enable = true; # Nix + yamlls.enable = true; # YAML # TODO Check out none-ls }; # FIXME vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') as onAttach... is it needed? # FIXME flags = { debounce_text_changes = 150 } is the default value ok? Maybe it was actually ignored }; - nvim-lightbulb = { # Shows a lightbulb whenever a codeAction is available under the cursor + nvim-lightbulb = { + # Shows a lightbulb whenever a codeAction is available under the cursor enable = true; autocmd.enabled = true; }; lspkind.enable = true; # Add icons to LSP completions # Treesitter - treesitter = { # Allows for better syntax highlighting + treesitter = { + # Allows for better syntax highlighting enable = true; incrementalSelection = { enable = true;