feat(nvim): set up fennel_ls

This commit is contained in:
buffet 2023-07-24 15:32:05 +02:00
parent 5b7d4d53dd
commit a6f80c730b
5 changed files with 50 additions and 0 deletions

View file

@ -124,6 +124,22 @@
"type": "github"
}
},
"fennel-ls": {
"flake": false,
"locked": {
"lastModified": 1689863239,
"narHash": "sha256-xPTgGmeILJSNsC++r9x+ussS7ttG7a5Cgl/D02auTgE=",
"owner": "~xerool",
"repo": "fennel-ls",
"rev": "e7c642e12a15c6d452559414ee1890b30f4e8406",
"type": "sourcehut"
},
"original": {
"owner": "~xerool",
"repo": "fennel-ls",
"type": "sourcehut"
}
},
"gh-nvim": {
"flake": false,
"locked": {
@ -283,6 +299,7 @@
"cmp-git": "cmp-git",
"copilot-cmp": "copilot-cmp",
"copilot-lua": "copilot-lua",
"fennel-ls": "fennel-ls",
"gh-nvim": "gh-nvim",
"home-manager": "home-manager_2",
"impermanence": "impermanence",

View file

@ -36,6 +36,11 @@
flake = false;
};
fennel-ls = {
url = "sourcehut:~xerool/fennel-ls";
flake = false;
};
gh-nvim = {
url = "github:ldelossa/gh.nvim";
flake = false;

View file

@ -2,4 +2,5 @@ inputs: self: super: {
inherit inputs;
apl386 = super.callPackage ./apl386 {};
fennel-ls = super.callPackage ./fennel-ls {};
}

View file

@ -0,0 +1,25 @@
{
inputs,
lib,
stdenvNoCC,
lua,
luaPackages,
}:
stdenvNoCC.mkDerivation {
name = "fennel-ls";
src = inputs.fennel-ls;
nativeBuildInputs = [luaPackages.fennel];
buildInputs = [lua];
makeFlags = ["PREFIX=$(out)"];
meta = with lib; {
description = "A language server for fennel-ls.";
homepage = "https://git.sr.ht/~xerool/fennel-ls";
license = licenses.mit;
platforms = lua.meta.platforms;
maintainers = with maintainers; [buffet];
};
}

View file

@ -10,6 +10,7 @@
home.packages = with pkgs; [
clang-tools
fennel-ls
nil
rust-analyzer
sumneko-lua-language-server
@ -376,6 +377,7 @@
'';
servers = [
"clangd"
"fennel_ls"
"gopls"
"lua_ls"
"nil_ls"