From 92d1eb9f6ce7f84b5080693d8a687e547bf486d6 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Sun, 27 Jul 2025 11:21:03 +0300 Subject: [PATCH] feat(bevy-inspector): init --- config/plugins/bevy-inspector.nix | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 config/plugins/bevy-inspector.nix diff --git a/config/plugins/bevy-inspector.nix b/config/plugins/bevy-inspector.nix new file mode 100644 index 0000000..1ecd683 --- /dev/null +++ b/config/plugins/bevy-inspector.nix @@ -0,0 +1,40 @@ +{pkgs, ...}: { + extraPlugins = [ + (pkgs.vimUtils.buildVimPlugin { + name = "bevy_inspector.nvim"; + src = pkgs.fetchFromGitHub { + owner = "Lommix"; + repo = "bevy_inspector.nvim"; + rev = "0a02ba5"; + hash = "sha256-sQO1xh6p8KkWVyRCYIiivlvkYXCob7UKd/C8WIFFL9A="; + }; + nvimSkipModules = [ + "bevy_inspector.api" + "bevy_inspector.inspector" + "bevy_inspector.util" + ]; + }) + ]; + + extraConfigLua = '' + require('bevy_inspector').setup({}) + ''; + + keymaps = [ + { + action = "BevyInspect"; + key = "ia"; + options.desc = "inspect all"; + } + { + action = "BevyInspectNamed"; + key = "in"; + options.desc = "inspect named"; + } + { + action = "BevyInspectQuery"; + key = "iq"; + options.desc = "inspect query"; + } + ]; +} -- 2.44.1