Skip to content

Commit 86a4021

Browse files
committed
plugins: add top-level deprecation file
- Initialize it with the `treesitter-playground` removal
1 parent 9a156ae commit 86a4021

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

plugins/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
./languages/treesitter/hmts.nix
9494
./languages/treesitter/rainbow-delimiters.nix
9595
./languages/treesitter/treesitter-context.nix
96-
./languages/treesitter/treesitter-playground.nix
9796
./languages/treesitter/treesitter-refactor.nix
9897
./languages/treesitter/treesitter-textobjects.nix
9998
./languages/treesitter/treesitter.nix
@@ -248,5 +247,7 @@
248247
./utils/yanky.nix
249248
./utils/zellij.nix
250249
./utils/zk.nix
250+
251+
./deprecation.nix
251252
];
252253
}

plugins/deprecation.nix

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{ lib, ... }:
2+
let
3+
removed = {
4+
# Added 2023-08-29
5+
treesitter-playground = ''
6+
The `treesitter-playground` plugin has been deprecated since the functionality is included in Neovim.
7+
Use:
8+
- `:Inspect` to show the highlight groups under the cursor
9+
- `:InspectTree` to show the parsed syntax tree ("TSPlayground")
10+
- `:PreviewQuery` to open the Query Editor (Nvim 0.10+)
11+
'';
12+
};
13+
in
14+
{
15+
imports = lib.mapAttrsToList (
16+
name:
17+
lib.mkRemovedOptionModule [
18+
"plugins"
19+
name
20+
]
21+
) removed;
22+
}

plugins/languages/treesitter/treesitter-playground.nix

-21
This file was deleted.

0 commit comments

Comments
 (0)