Commit graph

42 commits

Author SHA1 Message Date
Pei Yang Ching
945b9e6500 lazy: use similar API to nvf keymaps 2024-08-24 15:03:34 +02:00
Ching Pei Yang
7c8221a6d5 fixup! wrapper: use lzn-auto-require loader 2024-08-24 15:03:34 +02:00
Ching Pei Yang
99b1ce252c wrapper: use lzn-auto-require loader 2024-08-24 15:03:34 +02:00
Ching Pei Yang
118f33f1fc lz.n: generate less code 2024-08-24 15:03:34 +02:00
Ching Pei Yang
5002e25c1d lz.n: wrap lua code in function 2024-08-24 15:03:34 +02:00
Ching Pei Yang
c7bd41fe94 nvim-tree: load nvim-tree if openOnSetup 2024-08-24 15:03:34 +02:00
Ching Pei Yang
0dae5a0ffe lz.n: missing type check 2024-08-24 15:00:56 +02:00
Ching Pei Yang
99bbdad2e1 lz.n: process key maps 2024-08-24 15:00:56 +02:00
Pei Yang Ching
f68472a78b lazy: add setupOpts support 2024-08-24 15:00:56 +02:00
Pei Yang Ching
d6c1424d12 switch to other hacky array-table syntax 2024-08-24 15:00:56 +02:00
Pei Yang Ching
e062e93d2f wrap lazy init code in function 2024-08-24 15:00:56 +02:00
Ching Pei Yang
bdc1c83826 lz.n: load lz.n 2024-08-24 15:00:56 +02:00
Ching Pei Yang
d3c4eaa693 lz.n: add basic lazy.plugins option 2024-08-24 15:00:56 +02:00
Pei Yang Ching
caff0029a2 add lazy module skeleton 2024-08-24 15:00:56 +02:00
Pei Yang Ching
12a01936cd cleanup unused import 2024-08-24 15:00:56 +02:00
Pei Yang Ching
e5a2c58f26 remove unneeded pipe 2024-08-24 15:00:56 +02:00
Pei Yang Ching
afc7092d63 keymaps: use listOf mapOption instead 2024-08-24 15:00:56 +02:00
Pei Yang Ching
cce4195148 maps: allow same key on multiple mode 2024-08-24 15:00:56 +02:00
Ching Pei Yang
84c2a32054 fix: map descriptions (#358)
* remove unused

* maps: fix missing description
2024-08-24 15:00:56 +02:00
Ching Pei Yang
3db8b47027 Re-add old maps API (#356)
* wrapper: fix wrong import source

* wrapper: fix typo

* Revert "lib/binds: improve code, adjust functions to new api"

This reverts commit 6cb57e1d26.

* mappings: re-add legacy vim.maps API

* mappings: fix wrong submodule syntax

* docs: fix missing section id
2024-08-24 15:00:56 +02:00
diniamo
2dd1be0b45 vim.maps rewrite (#352)
* feat: rewrite vim.maps

* modules/mappings: enable silent by default

* docs: add entry for vim.maps rewrite

* lib/binds: improve code, adjust functions to new api
2024-08-24 14:35:50 +02:00
Gerg-L
7d824d6711
modules: fix build (#353)
Some checks failed
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Validate flake & check formatting / Validate Flake (push) Waiting to run
Validate flake & check formatting / Formatting via Alejandra (push) Waiting to run
Validate flake & check documentation / Validate Flake Documentation (docs) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-html) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-json) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-manpages) (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
* flake.lock: lock

* remove ussage of mapAttrsFlatten

* flake.lock: update mnw

* modules/default.nix makeNeovimConfig -> mnw

* modules/default.nix use buildVimPlugin (sad)

dont build when possible
2024-08-12 00:08:53 +00:00
Ching Pei Yang
0984e84444
wrapper: fix additionalRuntimePaths lua script (#349) 2024-07-29 14:02:00 +00:00
diniamo
f9789432f9
treewide: make the entire generated config lua based (#333)
* modules: switch to gerg's neovim-wrapper

* modules: use initViml instead of writing the file

* treewide: make the entire generated config lua based

* docs: remove mentions of configRC

* plugins/treesitter: remove vim.cmd hack

* treewide: move resolveDag to lib

* modules/wrapper(rc): fix typo

* treewide: migrate to pluginRC for correct DAG order

The "new" DAG order is as follows:
- (luaConfigPre)
- globalsScript
- basic
- theme
- pluginConfigs
- extraPluginConfigs
- mappings
- (luaConfigPost)

* plugins/theme: fix theme DAG place

* plugins/theme: fix fixed theme DAG place

* modules/wrapper(rc): add removed option module for configRC

* docs: add dag-entries chapter, add release note entry

* fix: formatting CI

* languages/nix: add missing `local`

* docs: fix page link

* docs: add mention of breaking changes at the start of the release notes

* plugins/neo-tree: convert to pluginRC

* modules/wrapper(rc): add back entryAnywhere

* modules/wrapper(rc): expose pluginRC

* apply raf patch

---------

Co-authored-by: NotAShelf <raf@notashelf.dev>
2024-07-20 08:30:48 +00:00
Ching Pei Yang
8071bfdb72
Fix typos (#326)
* fix: typo

* docs: wrong link
2024-07-09 23:37:07 +00:00
Gerg-L
8d5f23035d
treewide: cleanup (#324)
* statix, deadnix, alejandra

* _file

* _module.args

* concatStringsSep "\n" -> concatLines
concatStringsSep "\n" map -> concatMapStringsSep "\n"

* mkShell nativeBuildInputs -> packages
2024-07-08 21:57:58 +00:00
Frothy
2c9a9b4d29
Merge pull request #289 from horriblename/lua-include-empty-attrs
lib: do not filter out empty attrs in toLuaObject
2024-05-21 07:16:03 -04:00
Ching Pei Yang
af72dc105d lib: remove unused __empty special case in toLuaObject 2024-05-18 14:52:40 +02:00
cfbed8ceb1
modules/wrapper: remove redundant instances of literalExpression 2024-05-16 19:13:44 +03:00
407ecf00d5
wrapper/rc: add vim.additionaLuafiles
Allows the user to specify a list of lua files that will be called via `luafile`. All paths
that are passed to this option are checked by `builtins.isPath` so attempting to source paths
that do not exist do not result in a broken Lua configuration.
2024-05-09 00:44:58 +03:00
97a64abeff
treewide: clean up references to neovim-flake 2024-04-27 15:51:22 +03:00
4b868d0de6
wrapper/rc: loop over removed runtime paths
Would be neat to expose removed paths as a list in the future
2024-04-23 21:10:39 +03:00
50609c731e
wrapper/rc: document vim.globals better 2024-04-21 05:19:51 +03:00
72a5e6c684
wrapper/rc: remove redundant lib calls 2024-04-21 04:28:56 +03:00
2f4dcafaa3
modules: pass extraPackages to wrapper PATH 2024-04-21 03:21:48 +03:00
fecf9f48be
wrapper/rc: ignore user directories by default 2024-04-21 02:59:18 +03:00
be0fd17510
wrapper/rc: document enableLuaLoader better; link to docs 2024-04-21 02:34:54 +03:00
eb8d75a4ae
modules/neovim: move all mapping options to 2024-04-21 02:27:42 +03:00
7647353c40
modules/wrapper: make all wrapper features configurable
following features have been made configurable `withRuby`, `withNodeJs`, `withPython3` and `python3Packages`
2024-04-21 02:23:07 +03:00
d9a984bf6f
modules/wrapper: move RC features to wrapper/rc 2024-04-21 02:10:06 +03:00
0388898648
docs: fix build failures due to literalMD 2024-04-20 19:07:54 +03:00
43263040a4
treewide: restructure modules directory; add comments to modules top-level import 2024-04-20 18:12:36 +03:00