add sql stuff

This commit is contained in:
2026-06-26 14:11:40 +01:00
parent cee683231d
commit 0608e7e6f9
4 changed files with 36 additions and 6 deletions
+1
View File
@@ -3,6 +3,7 @@
"lazyvim.plugins.extras.dap.core", "lazyvim.plugins.extras.dap.core",
"lazyvim.plugins.extras.editor.fzf", "lazyvim.plugins.extras.editor.fzf",
"lazyvim.plugins.extras.lang.go", "lazyvim.plugins.extras.lang.go",
"lazyvim.plugins.extras.lang.sql",
"lazyvim.plugins.extras.lang.json", "lazyvim.plugins.extras.lang.json",
"lazyvim.plugins.extras.lang.markdown", "lazyvim.plugins.extras.lang.markdown",
"lazyvim.plugins.extras.test.core" "lazyvim.plugins.extras.test.core"
+18 -6
View File
@@ -1,10 +1,22 @@
-- Keymaps are automatically loaded on the VeryLazy event -- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here -- Add any additional keymaps here
vim.keymap.set("n", "<leader>/", function()
require("fzf-lua").live_grep({ cwd = LazyVim.root() })
end, { desc = "Grep (Root Dir)" })
vim.keymap.set("n", "<leader> ", function() local function toggle_or_focus_explorer()
require("fzf-lua").files({ cwd = LazyVim.root() }) local explorers = Snacks.picker.get({ source = "explorer" })
end, { desc = "Find Files (Root Dir)" }) local explorer = explorers[1]
if explorer then
if explorer:is_focused() then
explorer:close()
else
explorer:focus()
end
return
end
-- No explorer open; open one at the project root
Snacks.explorer({ cwd = LazyVim.root() })
end
vim.keymap.set("n", "<leader>e", toggle_or_focus_explorer, { desc = "Explorer (toggle/focus)" })
+16
View File
@@ -0,0 +1,16 @@
return {
{
"nvim-lualine/lualine.nvim",
opts = {
sections = {
lualine_c = {
{
"filename",
path = 1,
shorting_target = 0, -- 0 = no shortening, show full path
},
},
},
},
},
}
+1
View File
@@ -12,6 +12,7 @@ return {
"markdown-toc", "markdown-toc",
"markdownlint-cli2", "markdownlint-cli2",
"marksman", "marksman",
"sqlfluff",
"shfmt", "shfmt",
"stylua", "stylua",
"tree-sitter-cli", "tree-sitter-cli",