Skip to content

Commit 9901b61

Browse files
committed
feature(plugins): Add sqlit
1 parent 923dcac commit 9901b61

5 files changed

Lines changed: 102 additions & 3 deletions

File tree

config/editor/misc.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
};
1515
meta.homepage = "https://github.com/OXY2DEV/tree-sitter-lua_patterns";
1616
};
17+
18+
sqlit = pkgs.vimUtils.buildVimPlugin {
19+
pname = "sqlit.nvim";
20+
version = "13.03.2025";
21+
22+
src = pkgs.fetchFromGitHub {
23+
owner = "Maxteabag";
24+
repo = "sqlit.nvim";
25+
rev = "ecac5bea884379f50ef40c1bde93025ccfb21d58";
26+
hash = "sha256-CqMvJmgjsvs3oTQX4WWJssF0zNJ7cDe9b0CcRP/ALpY=";
27+
};
28+
};
1729
in {
1830
vim = {
1931
treesitter.grammars = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
@@ -34,6 +46,10 @@ in {
3446
];
3547
ui.colorizer.enable = mkDashDefault true;
3648
lazy.plugins = with pkgs.vimPlugins; {
49+
"sqlit.nvim" = mkDashDefault {
50+
package = sqlit;
51+
setupModule = "sqlit";
52+
};
3753
"instant.nvim" = mkDashDefault {
3854
package = instant-nvim;
3955
};

config/keybinds.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
silent = true;
101101
desc = "Global Search&Replace";
102102
}
103+
{
104+
mode = "n";
105+
key = "<leader>mo";
106+
action = "<cmd>lua require('sqlit').open()<cr>";
107+
noremap = true;
108+
silent = true;
109+
desc = "Database Edit";
110+
}
103111

104112
# movement
105113
{

flake.lock

Lines changed: 71 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
flake-parts.url = "github:hercules-ci/flake-parts";
88
base16.url = "github:SenchoPens/base16.nix";
99
statix.url = "github:oppiliappan/statix";
10+
sqlit.url = "github:Maxteabag/sqlit";
1011
};
1112

1213
outputs = {flake-parts, ...} @ inputs:

lib/dependencies.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
{pkgs, ...}: let
1+
{
2+
pkgs,
3+
inputs,
4+
...
5+
}: let
26
easyDotnet = pkgs.buildDotnetGlobalTool {
37
pname = "EasyDotnet";
48
version = "2.2.28";
@@ -24,4 +28,5 @@ in
2428
fish
2529
neovide
2630
opencode
31+
inputs.sqlit.packages.${system}.sqlit
2732
]

0 commit comments

Comments
 (0)