alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
tools astronvim: fix lsp integration
author
lassulus
date
3 years ago
(Sep 12, 2023, 8:26 AM CEST)
commit
3dce8d38
3dce8d38b2f1274afde927f5250fa20d8f9712c7
parent
df020aaa
df020aaa2b1cc18a4f33520423932ac7fec6a982
+3
-40
1 changed file
Expand all
Collapse all
Unified
Split
tools
astronvim
flake-module.nix
+3
-40
tools/astronvim/flake-module.nix
View file
Reviewed
···
2
2
{
3
3
perSystem = { system, lib, pkgs, ... }: let
4
4
vim_appname = "lassvim";
5
5
-
langs = [
6
6
-
# "agda"
7
7
-
# "bash" # throws an error
8
8
-
"c"
9
9
-
"c-sharp"
10
10
-
"cpp"
11
11
-
"css"
12
12
-
"elm"
13
13
-
"elisp"
14
14
-
#"fluent"
15
15
-
"go"
16
16
-
"hcl"
17
17
-
"haskell"
18
18
-
"html"
19
19
-
"janet-simple"
20
20
-
"java"
21
21
-
"javascript"
22
22
-
"jsdoc"
23
23
-
"json"
24
24
-
"julia"
25
25
-
"ocaml"
26
26
-
"pgn"
27
27
-
"php"
28
28
-
"python"
29
29
-
"ruby"
30
30
-
"rust"
31
31
-
"scala"
32
32
-
# "swift"
33
33
-
"typescript"
34
34
-
"yaml"
35
35
-
"nix"
36
36
-
"lua"
37
37
-
"markdown-inline"
38
38
-
"perl"
39
39
-
"make"
40
40
-
"toml"
41
41
-
];
42
5
nvim_deps = with pkgs; [
43
6
nodejs # copilot
44
7
neovim
···
83
46
ln -s ${inputs.astro-nvim}/lua/* $out/lua
84
47
ln -s ${./user} $out/lua/user
85
48
86
86
-
${lib.concatMapStringsSep "\n" (name: ''
87
87
-
ln -s ${pkgs.tree-sitter.builtGrammars."tree-sitter-${name}"}/parser $out/parser/${name}.so
88
88
-
'') langs}
49
49
+
${lib.concatMapStringsSep "\n" (grammar: ''
50
50
+
ln -s $(readlink -f ${grammar}/parser/*.so) $out/parser/${lib.last (builtins.split "-" grammar.name)}.so
51
51
+
'') pkgs.vimPlugins.nvim-treesitter.withAllGrammars.dependencies}
89
52
'';
90
53
in {
91
54
packages.vim = pkgs.writeShellScriptBin "vim" ''