Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Jan 18, 2024
1 parent 839e7aa commit 996feed
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
---
# Configuration

- [Common Configuration](./common-configuration.md)
- [Neovim Configuration](./neovim-configuration.md)
- [Vim Configuration](./vim-configuration.md)

Expand Down
35 changes: 35 additions & 0 deletions docs/neovim-configuration.md
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# Neovim Configuration

Configurations defined in bundler-nvim are available as packages and apps.
This module assumes that you will use that package as you wish, as follows.

```nix
environment.systemPackages = [
(pkgs.runCommand "nvim" { } ''
mkdir -p $out/bin
ln -s ${
self.packages.${system}.bundler-nvim
}/bin/nvim $out/bin/nvim
'')
];
```

## flakeModule schemes

| name | type | default | description |
| :-: | :-: | :- | :- |
| packageNamePrefix | `types.str` | `"bundler-nvim"` | TODO |
| appNamePrefix | `types.str` | `"bundler-nvim"` | TODO |
| package | `types.package` | `pkgs.neovim-unwrapped` | - |
| extraPackages | `with types; listOf package` | `[]` | e.g. lua-language-server |
| extraConfig | `types.lines` | `""` | viml code executed at startup |
| extraLuaConfig | `types.lines` | `""` | lua code executed at startup |
| after.ftPlugin | `with types; attrsOf lines` | `{}` | `after/ftplugin` (viml only) |
| withNodeJs | `types.bool` | `false` | alias for `neovim.withNodeJs` |
| withPython3 | `types.bool` | `false` | alias for `neovim.withPython3` |
| withRuby | `types.bool` | `false` | alias for `neovim.withRuby` |
| eagerPlugins | `with types; listOf (either package eagerPluginConfig)` | `[]` | plugins loaded at startup |
| lazyPlugins | `with types; listOf (either package lazyPluginConfig)` | `[]` | plugins lazy loaded |
| lazyGroups | `types.listOf lazyGroupConfig` | `[]` | plugin groups lazy loaded |
| timer | `types.int` | `100` | time used for loading plugin (msec) |
| logLevel | `types.enum [ "debug" "info" "warn" "error" ]` | `"warn"` |

2 changes: 2 additions & 0 deletions docs/vim-configuration.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Vim Configuration

`bundler-vim` is under development.

0 comments on commit 996feed

Please sign in to comment.