Stanislav Asunkin
8eb5763bbb
modules/lua-loader: make enable option nullable
...
This avoids having the option always "defined".
This also avoids luaLoader configuration in extra files by default.
Earlier `vim.loader.disable()` was always added to configs produced
by `files` option, effectively disabling luaLoader even if it was
explicitly enabled in a top-level configuration.
2024-07-21 17:11:50 +03:00
Stanislav Asunkin
c9a6912be5
modules/files: fix creating configs of vim type
2024-07-19 14:45:34 +03:00
Matt Sturgeon
086873bed9
modules: refactor extraFiles
...
Moved `extraFiles` from `modules/output.nix` into its own file `modules/files.nix`.
Users should now assign text to a `text` attribute, however they could
also assign a file path to a `source` attribute instead.
The old method of directly assigning a string still works, and is
coerced to the new type along with a deprecation warning.
2024-07-07 16:42:47 +01:00
Stanislav Asunkin
6674dea840
modules/output: fix extraLuaPackages
2024-07-06 20:44:43 +00:00
Gaetan Lepage
4e224d27ae
modules/diagnostics: add test
2024-06-21 16:10:27 +02:00
Gaetan Lepage
4175fac0ea
keymaps: remove remaining usages of deprecated lua option
2024-05-27 14:57:40 +02:00
Nick Hu
1c9f2a23a6
modules/commands: allow commands to be raw lua
2024-05-21 14:27:49 +02:00
Nick Hu
3ec6dff17b
modules/commands: fix nargs enum
2024-05-21 14:27:49 +02:00
traxys
62f32bfc71
treewide: Reformat with nixfmt
2024-05-05 22:00:40 +02:00
Gaetan Lepage
c706207007
tests: fix occurences of deprecated "options" option
2024-03-30 14:21:21 +01:00
Matt Sturgeon
4f83bcf290
Rename options
to avoid confusion with module options ( #1324 )
2024-03-29 21:58:44 +01:00
Bodleum
303b9ca2c0
Keymaps: Add keymapsOnEvent to load keymap on specified events ( #1260 )
2024-03-18 20:41:12 +01:00
Austin Horstman
30bc345dee
modules/highlights: add highlightOverride
2024-02-11 19:53:16 +01:00
Gaetan Lepage
97eed79568
modules/keymaps: allow action.__raw
2024-02-03 12:42:05 +01:00
Gaetan Lepage
c97afcbf82
modules/commands: fix lua cmd.options value when no options are set
2024-01-20 14:48:59 +01:00
Gaetan Lepage
5ae4714e80
helpers/highlight: Add rawType support for string options in the highlight type
2024-01-17 15:03:54 +01:00
Gaetan Lepage
02149dbb01
modules/options: add localOptions and globalOptions
2023-12-28 11:52:46 +01:00
Gaetan Lepage
48dd8d28cf
modules/keymaps: deprecate maps option
2023-12-02 20:29:07 +01:00
Gaetan Lepage
418bf5da17
modules/keymaps: factor out helper functions for use in plugins
2023-10-03 14:18:33 +02:00
Gaetan Lepage
dd6a114e52
plugins/misc: adapt to new maps options
2023-10-02 15:23:54 +02:00
Gaetan Lepage
574fb73258
modules/keymaps: refactor + new syntax
2023-10-02 15:23:54 +02:00
Gaetan Lepage
9e448b7ff0
tests: allow test cases to use the nixvim helpers (for testing them)
2023-09-27 10:48:13 +02:00
Pedro Alves
74bd7ee77e
modules/commands: allow creation of user commands ( #366 )
2023-05-23 14:30:30 +02:00
Gaétan Lepage
73e8649b20
modules/clipboard: add new module to manage clipboard option and provider ( #346 )
2023-04-24 10:38:57 +02:00
traxys
5a498edd14
modules/output: Allow to specify text to add as extra files ( #343 )
...
To enable some features (like adding tree-sitter queries) we need to add
files to specific directories in the runtime path (queries/lang/file.scm
for tree-sitter queries for example).
This commit adds support for specifying such files. You must be careful
to not have any collisions between `files` and `extraFiles`.
2023-04-21 20:04:58 +02:00
Gaétan Lepage
a9e3ff3f73
modules/lua-loader: add support for the new lua-loader ( #336 )
2023-04-15 16:32:10 +02:00
traxys
121566a267
editorconfig: Migrate to builtin plugin ( #335 )
2023-04-15 15:21:25 +02:00
traxys
cbae935d89
filetype: Add a module to wrap vim.filetype.add ( #277 )
2023-03-24 11:14:12 +01:00
Gaétan Lepage
db5061b4db
tests/plugins: refactor ( #235 )
2023-03-22 07:42:02 +01:00