this repo has no description
1{
2 config,
3 pkgs,
4 inputs,
5 ...
6}: let
7 nvim = pkgs.neovim.override {
8 configure = {
9 # Add Fennel to Lua path and require basic implementation
10 #
11 # runtimepath editing is not yet perfect, but works good enough so far
12 customRC = ''
13 set runtimepath+=${./nvim}/after
14 set runtimepath^=${./nvim}
15 lua << EOF
16 vim.g.lsp_paths = {
17 ['lexical'] = "${inputs.lexical.packages.${pkgs.stdenv.hostPlatform.system}.lexical}/bin/lexical",
18 ['typos_lsp'] = "${pkgs.typos-lsp}/bin/typos-lsp"
19 }
20 package.path = package.path .. ";${pkgs.luajitPackages.fennel}/share/lua/5.1/?.lua"
21 require('basic')
22 EOF
23 '';
24 packages.global = let
25 plugins = pkgs.vimPlugins;
26 in {
27 start = [
28 plugins.packer-nvim
29 plugins.vim-nickel
30 # plugins.lua-utils-nvim
31 plugins.neorg
32 plugins.neorg-telescope
33 (plugins.nvim-treesitter.withPlugins (p: with p; [
34 awk
35 bash
36 c
37 clojure
38 comment
39 cpp
40 css
41 dhall
42 diff
43 djot
44 dot
45 editorconfig
46 eex
47 elixir
48 erlang
49 fennel
50 fish
51 git_config
52 git_rebase
53 gitattributes
54 gitcommit
55 gitignore
56 gleam
57 glsl
58 graphql
59 haskell
60 hcl
61 heex
62 html
63 hurl
64 ini
65 javascript
66 jq
67 json
68 julia
69 just
70 latex
71 lua
72 luadoc
73 luap
74 luau
75 make
76 markdown
77 markdown_inline
78 mermaid
79 meson
80 nginx
81 nickel
82 nix
83 norg
84 po
85 printf
86 prolog
87 promql
88 properties
89 python
90 r
91 racket
92 ruby
93 rust
94 scala
95 scheme
96 sql
97 ssh_config
98 superhtml
99 terraform
100 toml
101 toml
102 typescript
103 typst
104 vim
105 vimdoc
106 xml
107 yaml
108 zig
109 ziggy
110 ziggy_schema
111 ]))
112 ];
113
114 opt = [];
115 };
116 };
117 };
118in {
119 nixpkgs.overlays = [
120 # inputs.neorg-overlay.overlays.default
121 ];
122
123 home.sessionVariables.EDITOR = "nvim";
124 home.packages = [nvim];
125}