From b034a294cbcd2b4243e73f8ddaa81ad39ca9d0e8 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 11 May 2024 14:42:59 -0400 Subject: [PATCH] feat(nvim): setup bashls --- common/home/neovim/langs/bash.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/common/home/neovim/langs/bash.nix b/common/home/neovim/langs/bash.nix index e3df8eb..3bc5ffd 100644 --- a/common/home/neovim/langs/bash.nix +++ b/common/home/neovim/langs/bash.nix @@ -5,7 +5,6 @@ ... }: let inherit (config.vars) neovimIde; - inherit (pkgs) vimPlugins; in { programs = { # I love doing typos @@ -20,6 +19,7 @@ in { vimAlias = true; extraLuaConfig = + lib.mkIf neovimIde /* lua */ @@ -28,11 +28,20 @@ in { pattern = 'sh', command = 'setlocal ts=4 sw=4 sts=0 expandtab', }); + + require('lspconfig').bashls.setup(require('coq').lsp_ensure_capabilities({ + settings = { + bashIde = { + shellcheckPath = '${pkgs.shellcheck}', + }, + }, + })); ''; - plugins = - lib.mkIf neovimIde [ - ]; + extraPackages = lib.mkIf neovimIde [ + pkgs.nodePackages.bash-language-server + pkgs.shellcheck + ]; }; }; }