summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-17 22:38:00 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-17 22:38:00 +0200
commit1f34bacc0961ce720813ef34a04938ee5aca9565 (patch)
tree2c31f95bc384ba755884e2fe317c4c82db69ecc7
parent802ddca9b830bb08427cd6054eec384103c364c4 (diff)
Add dadbod
-rw-r--r--fnl/plugins/editor/cmp.fnl5
-rw-r--r--fnl/plugins/editor/dadbod.fnl22
-rw-r--r--lazy-lock.json26
3 files changed, 41 insertions, 12 deletions
diff --git a/fnl/plugins/editor/cmp.fnl b/fnl/plugins/editor/cmp.fnl
index a062d92..8eba613 100644
--- a/fnl/plugins/editor/cmp.fnl
+++ b/fnl/plugins/editor/cmp.fnl
@@ -31,7 +31,9 @@
{:name :spell}
{:name :orgmode}
{:name :buffer :keyword_length 4}
- {:name :path :keyword_length 6}]
+ {:name :path :keyword_length 6}
+ {:name :vim-dadbod-completion}
+ {:name :git}]
:formatting {:format (lspkind.cmp_format {:with_text true
:menu {:buffer ""
:nvim_lsp ""
@@ -55,6 +57,7 @@
:onsails/lspkind-nvim
:hrsh7th/cmp-nvim-lsp
:hrsh7th/cmp-cmdline
+ :petertriho/cmp-git
:L3MON4D3/LuaSnip
:rafamadriz/friendly-snippets
:hrsh7th/cmp-path
diff --git a/fnl/plugins/editor/dadbod.fnl b/fnl/plugins/editor/dadbod.fnl
new file mode 100644
index 0000000..6701ee2
--- /dev/null
+++ b/fnl/plugins/editor/dadbod.fnl
@@ -0,0 +1,22 @@
+;; Plugins for interacting with databases.
+
+(local keys [{1 :<leader>wn
+ 2 :<cmd>DBUIToggle<cr>
+ :mode :n
+ :desc "Toggle Dadbod UI"}
+ {1 :<leader>we
+ 2 :<cmd>DBUIAddConnection<cr>
+ :mode :n
+ :desc "Add DB connection"}])
+
+{1 :kristijanhusak/vim-dadbod-ui
+ :dependencies [{1 :tpope/vim-dadbod :lazy true}
+ {1 :tpope/vim-dotenv :lazy true}
+ {1 :kristijanhusak/vim-dadbod-completion
+ :ft [:sql :plsql]
+ :lazy true}]
+ : keys
+ :init (fn []
+ (set vim.g.db_ui_use_nerd_fonts 1)
+ (set vim.g.db_ui_winwidth 40)
+ (set vim.g.db_ui_notification_width 39))}
diff --git a/lazy-lock.json b/lazy-lock.json
index 4e498aa..25d7e1d 100644
--- a/lazy-lock.json
+++ b/lazy-lock.json
@@ -1,17 +1,18 @@
{
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
- "LuaSnip": { "branch": "master", "commit": "ea7d7ea510c641c4f15042becd27f35b3e5b3c2b" },
- "SchemaStore.nvim": { "branch": "main", "commit": "4cd0b5e4db74780f5a70cd0635f307efda58b890" },
+ "LuaSnip": { "branch": "master", "commit": "3657c3f3cb2214a681fc7e95b6ffb509d076ebfb" },
+ "SchemaStore.nvim": { "branch": "main", "commit": "2a6a5d3e2bc8a5727b6d083d2920d12a392ed05b" },
"alpha-nvim": { "branch": "main", "commit": "234822140b265ec4ba3203e3e0be0e0bb826dff5" },
"better-escape.nvim": { "branch": "master", "commit": "7031dc734add47bb71c010e0551829fa5799375f" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
+ "cmp-git": { "branch": "main", "commit": "f900a4cf117300fdc3ba31d26f8b6223ccd9c574" },
"cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-spell": { "branch": "master", "commit": "60584cb75e5e8bba5a0c9e4c3ab0791e0698bffa" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
"dial.nvim": { "branch": "master", "commit": "611cf5e84f655c96318b803785f89e3146d8e48f" },
- "diffview.nvim": { "branch": "main", "commit": "7e5a85c186027cab1e825d018f07c350177077fc" },
+ "diffview.nvim": { "branch": "main", "commit": "a111d19ccceac6530448d329c63f998f77b5626e" },
"easyread.nvim": { "branch": "main", "commit": "0b07e315a4cd7d700c4a794bdddbec79fdc2628b" },
"flit.nvim": { "branch": "main", "commit": "498b3a4864e697f1ed1145e518c4c78c776c55d8" },
"friendly-snippets": { "branch": "main", "commit": "ebf6d6e83494cdd88a54a429340256f4dbb6a052" },
@@ -28,8 +29,7 @@
"mason.nvim": { "branch": "main", "commit": "d66c60e17dd6fd8165194b1d14d21f7eb2c1697a" },
"minibar.nvim": { "branch": "master", "commit": "353ca4efaf7fff1566bb02e0d7cb51133c41f660" },
"neo-tree.nvim": { "branch": "v2.x", "commit": "80dc74d081823649809f78370fa5b204aa9a853a" },
- "neogit": { "branch": "master", "commit": "8181099f5946724145cd27494bdaf84f354ba198" },
- "no-clown-fiesta.nvim": { "branch": "master", "commit": "8ffba36ef1aafb2d8a8f81d45908d61e0703c3be" },
+ "neogit": { "branch": "master", "commit": "9d9355137b1e2503a47fedfc395e75a8330163e8" },
"nui.nvim": { "branch": "main", "commit": "c8de23342caf8d50b15d6b28368d36a56a69d76f" },
"null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" },
"nvim-autopairs": { "branch": "master", "commit": "defad64afbf19381fe31488a7582bbac421d6e38" },
@@ -37,27 +37,31 @@
"nvim-bufdel": { "branch": "main", "commit": "96c4f7ab053ddab0025bebe5f7c71e4795430e47" },
"nvim-cmp": { "branch": "main", "commit": "5dce1b778b85c717f6614e3f4da45e9f19f54435" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
- "nvim-lspconfig": { "branch": "master", "commit": "57139c690dc8d594b2f9de8d1e609f2854a4fe45" },
+ "nvim-lspconfig": { "branch": "master", "commit": "cc388d3f6b9c7c943ae2b2dcd46ad470fd257f91" },
"nvim-spectre": { "branch": "master", "commit": "97cfd1b0f5a6ab35979ce1bee6c17f54745fd1e5" },
"nvim-surround": { "branch": "main", "commit": "1c2ef599abeeb98e40706830bcd27e90e259367a" },
- "nvim-treesitter": { "branch": "master", "commit": "5ec42175676bc4e6248b8ca9603acbc86497c68e" },
- "nvim-web-devicons": { "branch": "master", "commit": "925e2aa30dc9fe9332060199c19f132ec0f3d493" },
+ "nvim-treesitter": { "branch": "master", "commit": "9dd3e07609c5b74c5ac4193d0ce4fe91fb406fea" },
+ "nvim-web-devicons": { "branch": "master", "commit": "973ab742f143a796a779af4d786ec409116a0d87" },
"nvim-window-picker": { "branch": "main", "commit": "1b1bb834b0acb9eebb11a61664efc665757f1ba2" },
- "orgmode": { "branch": "master", "commit": "d26d52bb47e8978adf4ec78e20930b8f312fa473" },
+ "orgmode": { "branch": "master", "commit": "34f977c090da2ff9f8cea01eecae8bd7d83fdef9" },
"persistence.nvim": { "branch": "main", "commit": "4b8051c01f696d8849a5cb8afa9767be8db16e40" },
"plenary.nvim": { "branch": "master", "commit": "9ce85b0f7dcfe5358c0be937ad23e456907d410b" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
"sqlite.lua": { "branch": "master", "commit": "b7e28c8463254c46a8e61c52d27d6a2040492fc3" },
"stay-in-place.nvim": { "branch": "main", "commit": "0628b6db8970fc731abf9608d6f80659b58932c9" },
- "telescope-frecency.nvim": { "branch": "master", "commit": "fbda5d91d6e787f5977787fa4a81da5c8e22160a" },
+ "telescope-frecency.nvim": { "branch": "master", "commit": "2119da4e3d9ba6a0468f6f3a03d21514488cc733" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
"telescope-orgmode.nvim": { "branch": "main", "commit": "eabff061c3852a9aa94e672a7d2fa4a1ef63f9e2" },
- "telescope.nvim": { "branch": "master", "commit": "59812c26d826e8c717e29406267ea1260f71e103" },
+ "telescope.nvim": { "branch": "master", "commit": "b543aaa2c9cf8123ed2fe7dbb6c211a9cd415124" },
"toggleterm.nvim": { "branch": "main", "commit": "0427b908ebefcb3701c7f2cfbdafa37d11afe71a" },
"trim.nvim": { "branch": "master", "commit": "2df124c2c2844d3143091ebd3ae8b49bbe06bc5e" },
"trouble.nvim": { "branch": "main", "commit": "3f85d8ed30e97ceeddbbcf80224245d347053711" },
"undotree": { "branch": "master", "commit": "0e11ba7325efbbb3f3bebe06213afa3e7ec75131" },
+ "vim-dadbod": { "branch": "master", "commit": "7d80bbd11c407a09e0f7b869c38f3dec3902805f" },
+ "vim-dadbod-completion": { "branch": "master", "commit": "fc7321a17f4c55db11fae89a884ddf4724020bae" },
+ "vim-dadbod-ui": { "branch": "master", "commit": "0df3e984ba43d1688e4223315b4f27cbb556f6ad" },
+ "vim-dotenv": { "branch": "master", "commit": "5c51cfcf8d87280d6414e03cd6b253eb70ecb800" },
"vim-slash": { "branch": "master", "commit": "31aee09b7ea8893a18fa34f65e63e364fc998444" },
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" },
"zen-mode.nvim": { "branch": "main", "commit": "68f554702de63f4b7b6b6d4bcb10178f41a0acc7" }