mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-18 08:18:38 +02:00
format
This commit is contained in:
parent
8798a622cf
commit
3e73b2900c
1 changed files with 38 additions and 39 deletions
|
@ -1,12 +1,12 @@
|
||||||
{ pkgs
|
{
|
||||||
, config
|
pkgs,
|
||||||
, lib
|
config,
|
||||||
, ...
|
lib,
|
||||||
|
...
|
||||||
} @ args:
|
} @ args:
|
||||||
with lib; let
|
with lib; let
|
||||||
helpers = import ../helpers.nix args;
|
helpers = import ../helpers.nix args;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.plugins.vim-matchup = {
|
options.plugins.vim-matchup = {
|
||||||
enable = mkEnableOption "Enable vim-matchup";
|
enable = mkEnableOption "Enable vim-matchup";
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ in
|
||||||
helpers.defaultNullOpts.mkNullable
|
helpers.defaultNullOpts.mkNullable
|
||||||
(types.submodule {
|
(types.submodule {
|
||||||
options = {
|
options = {
|
||||||
method = helpers.defaultNullOpts.mkEnumFirstDefault [ "status" "popup" "status_manual" ] ''
|
method = helpers.defaultNullOpts.mkEnumFirstDefault ["status" "popup" "status_manual"] ''
|
||||||
'status': Replace the status-line for off-screen matches.
|
'status': Replace the status-line for off-screen matches.
|
||||||
|
|
||||||
If a match is off of the screen, the line belonging to that match will be displayed
|
If a match is off of the screen, the line belonging to that match will be displayed
|
||||||
|
@ -138,7 +138,7 @@ in
|
||||||
objects. Does not apply to match highlighting (see matchParenStopline instead)
|
objects. Does not apply to match highlighting (see matchParenStopline instead)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
delimNoSkips = helpers.defaultNullOpts.mkNullable (types.enum [ 0 1 2 ]) "0" ''
|
delimNoSkips = helpers.defaultNullOpts.mkNullable (types.enum [0 1 2]) "0" ''
|
||||||
To disable matching within strings and comments:
|
To disable matching within strings and comments:
|
||||||
- 0: matching is enabled within strings and comments
|
- 0: matching is enabled within strings and comments
|
||||||
- 1: recognize symbols within comments
|
- 1: recognize symbols within comments
|
||||||
|
@ -146,12 +146,11 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = let
|
||||||
let
|
|
||||||
cfg = config.plugins.vim-matchup;
|
cfg = config.plugins.vim-matchup;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ cfg.package ];
|
extraPlugins = [cfg.package];
|
||||||
|
|
||||||
plugins.treesitter.moduleConfig.matchup = mkIf cfg.treesitterIntegration.enable {
|
plugins.treesitter.moduleConfig.matchup = mkIf cfg.treesitterIntegration.enable {
|
||||||
inherit (cfg.treesitterIntegration) enable disable;
|
inherit (cfg.treesitterIntegration) enable disable;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue