feat(nvim): set up fennel_ls
This commit is contained in:
parent
5b7d4d53dd
commit
a6f80c730b
5 changed files with 50 additions and 0 deletions
17
flake.lock
17
flake.lock
|
@ -124,6 +124,22 @@
|
||||||
"type": "github"
|
"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": {
|
"gh-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -283,6 +299,7 @@
|
||||||
"cmp-git": "cmp-git",
|
"cmp-git": "cmp-git",
|
||||||
"copilot-cmp": "copilot-cmp",
|
"copilot-cmp": "copilot-cmp",
|
||||||
"copilot-lua": "copilot-lua",
|
"copilot-lua": "copilot-lua",
|
||||||
|
"fennel-ls": "fennel-ls",
|
||||||
"gh-nvim": "gh-nvim",
|
"gh-nvim": "gh-nvim",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
|
|
|
@ -36,6 +36,11 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fennel-ls = {
|
||||||
|
url = "sourcehut:~xerool/fennel-ls";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
gh-nvim = {
|
gh-nvim = {
|
||||||
url = "github:ldelossa/gh.nvim";
|
url = "github:ldelossa/gh.nvim";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
|
@ -2,4 +2,5 @@ inputs: self: super: {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
|
|
||||||
apl386 = super.callPackage ./apl386 {};
|
apl386 = super.callPackage ./apl386 {};
|
||||||
|
fennel-ls = super.callPackage ./fennel-ls {};
|
||||||
}
|
}
|
||||||
|
|
25
overlay/fennel-ls/default.nix
Normal file
25
overlay/fennel-ls/default.nix
Normal 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];
|
||||||
|
};
|
||||||
|
}
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
clang-tools
|
clang-tools
|
||||||
|
fennel-ls
|
||||||
nil
|
nil
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
sumneko-lua-language-server
|
sumneko-lua-language-server
|
||||||
|
@ -376,6 +377,7 @@
|
||||||
'';
|
'';
|
||||||
servers = [
|
servers = [
|
||||||
"clangd"
|
"clangd"
|
||||||
|
"fennel_ls"
|
||||||
"gopls"
|
"gopls"
|
||||||
"lua_ls"
|
"lua_ls"
|
||||||
"nil_ls"
|
"nil_ls"
|
||||||
|
|
Loading…
Reference in a new issue