Commit graph

53 commits

Author SHA1 Message Date
Austin Horstman
91130385ed
plugins/treesitter: support unsetting keymaps 2024-07-25 15:12:52 -05:00
Stanislav Asunkin
ce93f1724f plugins/treesitter: add workaround for performance.combinePlugins 2024-07-24 16:50:50 +02:00
Sandro
433d2f213c
plugins/treesitter: disable folding by default 2024-07-15 11:58:08 +02:00
Matt Sturgeon
195978e627
plugins/treesitter: fix ensure_installed to allow "all"
The plugin allows passing either the string `"all"` or a list of languages.
2024-07-13 10:59:02 +01:00
Austin Horstman
89d74cdce1
plugins/treesitter: fix folding
opts getting wiped out by setting entire set as default instead of each
attribute
2024-07-12 12:13:27 -05:00
Austin Horstman
1385953299
plugins/treesitter: fix parser_install_dir default
The plugin's default is not compatible with nix, because it ends up in
the read-only /nix/store.

Set our default to the one used in their upcoming "1.0" version.
2024-07-12 10:48:21 -05:00
traxys
023dc1c93a plugins/treesitter: Add a treesitter injection query for raw lua 2024-07-09 07:45:26 +00:00
traxys
29118021b3 plugins/treesitter: Adapt nixvim queries to 0.10 2024-07-09 07:45:26 +00:00
Austin Horstman
1a644b8c2b
plugins/treesitter: fix settingsExample 2024-07-08 14:23:42 -05:00
Austin Horstman
97fa47376b
treewide: treesitter moduleConfig -> settings 2024-07-08 09:09:48 -05:00
Austin Horstman
435ef287ab
plugins/treesitter: switch to mkNeovimPlugin 2024-07-08 09:09:48 -05: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
Matt Sturgeon
6f408f2bd0
plugins/languages: normalize plugin defaults 2024-06-21 08:49:03 +01:00
Gaetan Lepage
b822078ec1 plugins/ts-autotag: switch to mkNeovimPlugin 2024-06-17 11:02:51 +02:00
Gaetan Lepage
7a2d065cce misc: ensure all options have a description 2024-06-11 11:34:10 +02:00
Petr Portnov | PROgrm_JARvis
afc98b291d
fix(hmts): correct error message on no treesitter 2024-06-04 16:48:13 +03:00
Gaetan Lepage
7c4fe30f81 lib/options: introduce new mkPackageOption for dependencies 2024-05-17 22:15:47 +02:00
Gaetan Lepage
26367692da lib/options: rename mkPackageOption to mkPluginPackageOption 2024-05-17 22:15:47 +02:00
traxys
62f32bfc71 treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
Gaetan Lepage
f2f97d844b misc: allow null in extraPackages 2024-04-24 08:10:51 +02:00
Gaetan Lepage
6ebd538ede plugins/treesitter-context: switch to mkNeovimPlugin 2024-04-22 21:05:55 +02:00
Matt Sturgeon
4f83bcf290
Rename options to avoid confusion with module options (#1324) 2024-03-29 21:58:44 +01:00
Loïc Reynier
233feeb8d2
treewide: fix typos (#1217) 2024-03-07 19:44:13 +01:00
Viktor Kleen
7edffe3896
Fix typos in plugins.treesitter-refactor.navigation.keymaps (#1031) 2024-02-14 21:37:43 +01:00
Gaetan Lepage
7dbf7f978c plugins: do not import helpers.nix directly 2024-02-11 11:50:35 +01:00
Gaetan Lepage
e2c3459d1d lib/helpers: extraOptionsOptions -> neovim-plugin.extraOptionsOptions 2024-01-28 23:39:14 +01:00
Gaetan Lepage
d137555971 plugins/hmts: add warning when treesitter is not enabled 2024-01-26 16:00:53 +01:00
Gaetan Lepage
889144c0b1 plugins/hmts: move source file and test from 'utils' to 'languages/treesitter' 2024-01-26 16:00:53 +01:00
Gaetan Lepage
2785267b1b plugins/treesitter: add an option to control if gcc should be installed 2024-01-04 09:01:54 +01:00
traxys
8aa4b7e4ce
helpers: Add option helpers for types that are either a lua str or a value (#876)
Those types needed the following code in apply:

if builtins.isString value
then mkRaw value
else value

This commit avoids this boilerplate, and clarifies that the `str` is lua
code in the documentation.
2024-01-02 00:30:10 +01:00
traxys
af41ea2d80
helpers: move rawType to helpers.nixvimTypes (#871)
This is done in preparation of adding new (lua) types to help the
documentation.
2024-01-01 23:33:53 +01:00
traxys
1d8e7906c9
plugins: Introduce helpers.defaultNullOpts.mkLuaFn (#855)
This allows to avoid calling `mkRaw` on lua functions, as they will get
applied automatically.

This could also help in the future to refactor the use of Lua code to
make it more user-friendly.
2023-12-29 15:24:42 +01:00
Gaetan Lepage
ebe13a1d24 plugins/treesitter: fix typo 2023-12-22 14:48:15 +01:00
Gaetan Lepage
ff7fe40bf6 plugins/rainbow-delimiters: remove warnings 2023-12-22 14:48:15 +01:00
Gaetan Lepage
dbcd314708 plugins: use LogLevel where possible 2023-12-22 14:48:15 +01:00
Gaetan Lepage
be14bc1b91 plugins/ts-context-commentstring: use new setup-based init 2023-11-27 15:13:29 +01:00
Gaetan Lepage
578b1acc71 plugins/treesitter-context: remove old deprecation warnings 2023-11-23 16:37:47 +01:00
Gaetan Lepage
563a42c71c plugins/treesitter-textobjects: init 2023-11-23 16:37:47 +01:00
Gaetan Lepage
19f39c3b1b plugins: swith to the new behaviour of mkRaw 2023-11-23 11:39:41 +01:00
Gaetan Lepage
b6724702b4 misc: refactor imports, prefer adding helpers to args rather than importing it 2023-11-06 16:33:39 +01:00
municorn
3fd743fe80 docs: fix grammar, spelling, and text for enable options 2023-10-09 15:04:57 +02:00
Gaetan Lepage
8040f8422a plugins/treesitter-playground: mark as deprecated 2023-08-29 10:01:13 +02:00
Gaetan Lepage
ebfaa31df3 plugins/rainbow-delimiters: init + test (replaces treesitter-rainbow) 2023-08-28 09:50:49 +02:00
Gaetan Lepage
b8c3385599 plugins/treesitter-context: reflect upstream options changes 2023-08-25 15:34:55 +02:00
Gaetan Lepage
fce6a33488 plugins/treesitter: add parsersToFiletypes option 2023-06-05 10:15:40 +02:00
Gaetan Lepage
8f00594b25 plugins/ts-context-commentstring: init + test 2023-06-01 16:14:25 +02:00
Gaetan Lepage
df25456aaa plugins/ts-autotag: init + test 2023-06-01 15:53:48 +02:00
Gaetan Lepage
535fc7d5d3 plugins/treesitter-context: add missing warning when treesitter is not enabled 2023-06-01 15:53:48 +02:00
Pedro Alves
40e0516eca
treesitter: add injection for vimscript (#383) 2023-05-23 16:38:25 +01:00
Tanish2002
efdcbe225f perform some statix linting and fixes 2023-05-22 23:00:53 +02:00