From 90b41ea331c9a5bc889f7c0b2c077eb3cb16151a Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 26 Apr 2024 19:41:27 -0600 Subject: [PATCH] configs/neovim: enable htmx-lsp --- configs/neovim.lua | 1 + configs/neovim.nix | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/neovim.lua b/configs/neovim.lua index 67c3758..ccdc80a 100644 --- a/configs/neovim.lua +++ b/configs/neovim.lua @@ -61,6 +61,7 @@ lspc.perlpls.setup {}; lspc.solargraph.setup {}; lspc.tsserver.setup {}; lspc.zls.setup {}; +lspc.htmx.setup{}; o.hlsearch = true; diff --git a/configs/neovim.nix b/configs/neovim.nix index 7109bc2..c7c2564 100644 --- a/configs/neovim.nix +++ b/configs/neovim.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, isUnstable, ... }: with pkgs; let vimBuildTool = pkgs.vimUtils.buildVimPlugin; @@ -26,6 +26,7 @@ let }; }; + unstablePkgs = if isUnstable then [ htmx-lsp ] else [ ]; baseVimPackages = with vimPlugins; [ elm-vim fugitive @@ -88,7 +89,7 @@ in sumneko-lua-language-server tree-sitter zls - ]; + ] ++ unstablePkgs; programs.neovim = { enable = true;