From d68757630654fa9eadf0b9cc75e9af49b7d26325 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 3 Oct 2024 01:21:16 -0400 Subject: [PATCH] Added initial database support --- config/keys.nix | 13 +++++++++++++ config/plugins.nix | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/config/keys.nix b/config/keys.nix index 5862489..ccb6343 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -49,6 +49,11 @@ group = "Search"; icon = ""; } + { + __unkeyed-1 = "D"; + group = "Database"; + icon = ""; + } ]; }; }; @@ -101,6 +106,14 @@ options = { desc = "Toggle tree view"; }; } + # Database + { + mode = "n"; + key = "Du"; + action = "DBUI"; + options = { desc = "Show Database UI"; }; + } + # LSP Actions { mode = "n"; diff --git a/config/plugins.nix b/config/plugins.nix index f555eab..b7a8761 100644 --- a/config/plugins.nix +++ b/config/plugins.nix @@ -1,5 +1,10 @@ { pkgs, ... }: { - extraPlugins = [ pkgs.vimPlugins.supermaven-nvim ]; + extraPlugins = with pkgs; [ + vimPlugins.supermaven-nvim # AI code completion + vimPlugins.vim-dadbod # DB client + vimPlugins.vim-dadbod-completion # DB completion + vimPlugins.vim-dadbod-ui # DB UI + ]; extraConfigLua = '' require("supermaven-nvim").setup({