Commit graph

2428 commits

Author SHA1 Message Date
Matt Sturgeon
11924e1593
modules/output: add impureRtp option
Instead of assuming `wrapRc` implies we don't want impurities, configure
this separately.
2024-09-25 18:43:32 +01:00
Matt Sturgeon
fb7cda2868
modules/output: refactor wrapRc default
Set default to `true`, with a low priority. Home-manager's wrapper sets
its own default using `mkOptionDefault`.

Clarify using `defaultText`.
2024-09-25 18:43:10 +01:00
Matt Sturgeon
a8f678da24
wrappers: explicitly set _file for wrapper modules
This won't be detected automatically, since the modules are all returned
from function calls instead of being path references.
2024-09-25 16:22:25 +01:00
Matt Sturgeon
b3a90d737d
modules/files: don't set shorthandOnlyDefinesConfig 2024-09-24 19:17:44 +01:00
Matt Sturgeon
5b55858fe3
wrappers: use (evalModules {}).type for nixvim submodule 2024-09-24 19:17:44 +01:00
Matt Sturgeon
8f991cc8bc
wrappers/shared: only propagate files when nixvim is enabled 2024-09-24 14:59:41 +01:00
Matt Sturgeon
87509bac1f
wrappers: move assertion propagation to _shared.nix 2024-09-24 14:59:41 +01:00
Matt Sturgeon
6da94195c2
modules/misc: include assertions and meta modules in the repo
Based on the modules we previously imported from NixOS.

This will allow us to drop the `defaultPkgs` specialArg and avoids
needing the proposed `pkgsPath` specialArg.
2024-09-24 12:49:28 +01:00
Đỗ Quang Minh
901346e38b plugins/luasnip: fix extend_filetypes -> filetype_extend 2024-09-24 03:44:26 +00:00
Matt Sturgeon
e64c511811
tests/package-options: allow option defaults to throw
This is often an intended behaviour, so just assume any option whose
default throws is not a package-type option
2024-09-24 03:27:48 +01:00
Austin Horstman
a75c2235d9
plugins/rest: v3 migration 2024-09-23 20:58:02 -05:00
github-actions[bot]
78816c0c9c
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/14929f7089268481d86b83ed31ffd88713dcd415' (2024-09-21)
  → 'github:nix-community/home-manager/04213d1ce4221f5d9b40bcee30706ce9a91d148d' (2024-09-22)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/c03f85fa42d68d1056ca1740f3113b04f3addff2' (2024-09-19)
  → 'github:lnl7/nix-darwin/bd7d1e3912d40f799c5c0f7e5820ec950f1e0b3d' (2024-09-22)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c04d5652cfa9742b1d519688f65d1bbccea9eb7e' (2024-09-19)
  → 'github:NixOS/nixpkgs/9357f4f23713673f310988025d9dc261c20e70c6' (2024-09-21)
• Updated input 'nuschtosSearch':
    'github:NuschtOS/search/7733a39a1321057172d87e6251ded7cdeb67171e' (2024-09-20)
  → 'github:NuschtOS/search/3b7dd61b365ca45380707453758a45f2e9977be3' (2024-09-22)
• Updated input 'nuschtosSearch/flake-utils':
    'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
  → 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a' (2024-09-17)
2024-09-23 20:21:53 -05:00
refaelsh
9bcba520c8
plugins/otter: remove cmp source registration
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2024-09-24 02:15:08 +01:00
Matt Sturgeon
47364df496
lib/types/pluginLuaConfig: use lib.optional instead of lib.mkIf
This may slightly increase performance by reducing work done by the
module system.
2024-09-23 20:08:52 +01:00
Austin Horstman
a9345dcfc3
plugins/markview: mode -> modes 2024-09-22 19:20:33 -05:00
Austin Horstman
b473bdc5ae
treewide: consolidate iconsPackage removal and warning 2024-09-22 13:54:31 -05:00
Austin Horstman
38a183564b
plugins/telescope: iconsPackage -> icons provider options 2024-09-22 13:49:43 -05:00
Austin Horstman
5ff98645ce
plugins/lspsaga: iconsPackage -> icons provider options 2024-09-22 13:48:03 -05:00
Austin Horstman
254b15d066
plugins/nvim-tree: iconsPackage -> icons provider options 2024-09-22 13:48:03 -05:00
Austin Horstman
e23bd5475c
plugins/neo-tree: iconsPackage -> icons provider options 2024-09-22 13:47:23 -05:00
Austin Horstman
2e281c43e0
plugins/trouble: iconsPackage -> icons provider options 2024-09-22 13:46:15 -05:00
Austin Horstman
b2929765ab
plugins/alpha: iconsPackage -> icons provider options 2024-09-22 13:45:14 -05:00
Austin Horstman
7a3423ae18
plugins/diffview: iconsPackage -> icons provider options 2024-09-22 13:45:14 -05:00
Austin Horstman
cf13d60cd6
plugins/fzf-lua: iconsPackage -> icons provider options 2024-09-22 13:44:12 -05:00
Austin Horstman
59a9652aee
plugins/bufferline: iconsPackage -> icons provider options 2024-09-22 13:44:12 -05:00
Austin Horstman
2cf80fd66f
plugins/barbar: iconsPackage -> icons provider options 2024-09-22 13:43:08 -05:00
Austin Horstman
23a903f13c
plugins/chadtree: iconsPackage -> icons provider options 2024-09-22 13:22:43 -05:00
Matt Sturgeon
81ae3febd2
lib: throw when deprecated builders are used on a lib without pkgs
Previously the deprecated builders would warn when used on a lib _with_
`pkgs`, but were simply not present on a lib _without_ `pkgs`.

Now, they are always present, but will throw when evaluated on a lib
_without_ `pkgs`.
2024-09-22 18:18:05 +01:00
Matt Sturgeon
1116ae6332
docs: use evalNixvim helper 2024-09-22 18:18:05 +01:00
Matt Sturgeon
191b0a9502
treewide: avoid passing pkgs to our lib
In the two places where our "helpers" lib is exclusively internal
(flake module args and building the docs), we no longer supply `pkgs`.

In the other 4 locations, we now note why we still do in a comment.
2024-09-22 18:18:05 +01:00
Matt Sturgeon
76df09619d
lib/types/pluginLuaConfig: only merge pre and post when defined
- Have them default to `null`
- Only merge them into `content` when non-null
- Mention this in `content`'s description
2024-09-22 17:49:41 +01:00
Quentin Boyer
d2f9e011d9 lib/neovim-plugin: Add lua configuration scoped to the plugin
This commit adds a `plugins.<name>.luaConfig` section controlling the
plugin specific configuration.

The section contains the internal `init` option, containing the plugin's
initialization code.

It also contains the public `pre` and `post` options, that allow to add
code before & after the `init` section

Finally, it contains the `final` option, being the concatenation of the
three previous options.
2024-09-22 16:15:27 +00:00
Austin Horstman
2bc6a94992
plugins/lsp/ts_ls: add pluginDefault filetypes 2024-09-21 15:33:31 -05:00
Austin Horstman
a8ab73432a
plugins/lsp/volar: add ts-ls integration 2024-09-21 15:32:58 -05:00
github-actions[bot]
384f97cf50 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/0b052dd8119005c6ba819db48bcc657e48f401b7' (2024-09-20)
  → 'github:nix-community/home-manager/14929f7089268481d86b83ed31ffd88713dcd415' (2024-09-21)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/395c52d142ec1df377acd67db6d4a22950b02a98' (2024-09-18)
  → 'github:NixOS/nixpkgs/c04d5652cfa9742b1d519688f65d1bbccea9eb7e' (2024-09-19)
2024-09-21 16:09:17 +00:00
Austin Horstman
2f09998b65
plugins/otter: add autoActivate 2024-09-20 19:56:35 -05:00
github-actions[bot]
3211ce356b flake.lock: Update
Flake lock file updates:

• Updated input 'git-hooks':
    'github:cachix/git-hooks.nix/7570de7b9b504cfe92025dd1be797bf546f66528' (2024-09-05)
  → 'github:cachix/git-hooks.nix/4e743a6920eab45e8ba0fbe49dc459f1423a4b74' (2024-09-19)
• Updated input 'home-manager':
    'github:nix-community/home-manager/e524c57b1fa55d6ca9d8354c6ce1e538d2a1f47f' (2024-09-14)
  → 'github:nix-community/home-manager/0b052dd8119005c6ba819db48bcc657e48f401b7' (2024-09-20)
• Updated input 'nix-darwin':
    'github:lnl7/nix-darwin/21fe31f26473c180390cfa81e3ea81aca0204c80' (2024-09-13)
  → 'github:lnl7/nix-darwin/c03f85fa42d68d1056ca1740f3113b04f3addff2' (2024-09-19)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/345c263f2f53a3710abe117f28a5cb86d0ba4059' (2024-09-13)
  → 'github:NixOS/nixpkgs/395c52d142ec1df377acd67db6d4a22950b02a98' (2024-09-18)
• Updated input 'nuschtosSearch':
    'github:NuschtOS/search/97d34b70deed4878fcb2449ac89dab717d72efa1' (2024-09-15)
  → 'github:NuschtOS/search/7733a39a1321057172d87e6251ded7cdeb67171e' (2024-09-20)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/9fb342d14b69aefdf46187f6bb80a4a0d97007cd' (2024-09-02)
  → 'github:numtide/treefmt-nix/ee41a466c2255a3abe6bc50fc6be927cdee57a9f' (2024-09-19)
2024-09-20 15:37:08 +00:00
zowoq
c2080ede4f ci(Mergify): configuration update
Signed-off-by: null <null>
2024-09-20 12:57:37 +10:00
Jeremy Fleischman
400d1d927d
lib: fix escaping bugs in wrapVimscriptForLua and wrapLuaForVimscript
These functions had very similar bugs: they didn't check if their chosen
"close token" was already present in the string they're escaping.

I went ahead and did the work implied by the TODOs: search for a "close
token" that is *not* in the original string. Pretty simple concept, but
it turned into an annoying amount of code. I couldn't find anything in
upstream nixpkgs lib, or some clever insight about lua/vimscript that
makes this work unecessary, but I'll be thrilled (and a little bummed
about a wasted afternoon) to learn about something.
2024-09-19 15:41:46 -07:00
Austin Horstman
2df1bdd14d
plugins/lsp/gopls: add goPackage 2024-09-19 08:25:44 -05:00
Austin Horstman
5660c4011c
plugins/alpha: proper terminal support 2024-09-18 22:12:37 -05:00
Austin Horstman
beb42716ff
plugins/alpha: remove helpers and with lib 2024-09-18 22:04:37 -05:00
Austin Horstman
17b79813bf
plugins/alpha: rawLua support 2024-09-18 22:04:37 -05:00
Austin Horstman
9307b201a3
plugins/telescope-live-grep-args: init 2024-09-18 11:22:11 -05:00
Austin Horstman
11b9de7264
plugins/telescope-manix: fix manixPackage usage 2024-09-18 10:09:28 -05:00
Austin Horstman
b34379e981
plugins/package-info: add telescope integration 2024-09-18 08:22:49 -05:00
Austin Horstman
d4b1827606
plugins/package-info: init 2024-09-18 08:22:49 -05:00
theabm
04ad7937c0
plugins/nvim-surround: init 2024-09-18 08:15:16 -05:00
Austin Horstman
092d1a8a9c
plugins/surround: rename to vim-surround
Adding nvim-surround so we need to deprecate the generic name and move
it.
2024-09-18 07:57:18 -05:00
sportshead
061d47f7c5
plugins/tokyonight: add moon style to settings
Default style since tokyonight v4.0.0. See [folke/tokyonight.nvim
blame](766be08803 (diff-2118ce7f3d4c28292bfec01fd0828fa01ea8b5505df921c874452e35997939c5R9))
2024-09-18 10:33:57 +01:00