From a9f46fa50222fba20432b9a6fa42e47b5702269b Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 8 Nov 2024 16:30:40 -0500 Subject: [PATCH] mappings --- init.lua | 7 +++++++ lazy-lock.json | 30 ++++++++++++++++++++++++++++++ lua/mappings.lua | 3 +++ 3 files changed, 40 insertions(+) create mode 100644 lazy-lock.json diff --git a/init.lua b/init.lua index 5040aab..21fc44d 100644 --- a/init.lua +++ b/init.lua @@ -45,3 +45,10 @@ vim.api.nvim_create_autocmd("FileType", { }) vim.opt.conceallevel = 1 -- or 0, or 2, depending on your preference + +-- pgformatter +vim.api.nvim_create_autocmd("FileType", { + pattern = "sql", + -- command = "setlocal formatprg=/usr/local/bin/pg_format\\ --comma-start\\ -", + command = "setlocal formatprg=/usr/local/bin/pg_format\\ -", +}) diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..df73850 --- /dev/null +++ b/lazy-lock.json @@ -0,0 +1,30 @@ +{ + "LuaSnip": { "branch": "master", "commit": "2c08f32a570c07b8130144813266e21393da80d3" }, + "NvChad": { "branch": "v2.5", "commit": "09dd13e9c6df98fe5609829a7a0fbccea2f515ae" }, + "base46": { "branch": "v2.5", "commit": "fec9fa583025e69e0c4f902bd61990e8d13d1975" }, + "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, + "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, + "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, + "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, + "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, + "conform.nvim": { "branch": "master", "commit": "6a28c90082a67f62a323ab90d988e000a718a8c7" }, + "friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" }, + "gitsigns.nvim": { "branch": "main", "commit": "2d725fdd7fe4a612fa3171ca0a965f455d8dc325" }, + "indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" }, + "lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" }, + "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, + "menu": { "branch": "main", "commit": "ee85b2e394fde354bd24e35ff7a688d10c9212fa" }, + "minty": { "branch": "main", "commit": "157e91c04cce2f01643519338d6b854275a77547" }, + "nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" }, + "nvim-cmp": { "branch": "main", "commit": "29fb4854573355792df9e156cb779f0d31308796" }, + "nvim-lspconfig": { "branch": "master", "commit": "59a6766cbf32c7e4cf3ed685ccad7ffe1dde8c40" }, + "nvim-tree.lua": { "branch": "master", "commit": "8f974879a04b93fff68b4627087782e76cdf2ed0" }, + "nvim-treesitter": { "branch": "master", "commit": "de70388626b398e9cfbec0ec02a0fab8d0f26648" }, + "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, + "obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" }, + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, + "telescope.nvim": { "branch": "master", "commit": "37dc9233a473dd6c3f54456ef9994d8f77c80211" }, + "ui": { "branch": "v3.0", "commit": "ba40afccc8a27236eb735cd55e2c33ced912b8b0" }, + "volt": { "branch": "main", "commit": "4472da2e77ad240e7fc56af6357b2a8fdf6aa0ae" }, + "which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" } +} diff --git a/lua/mappings.lua b/lua/mappings.lua index c4c3ac5..267bc02 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -19,6 +19,9 @@ vim.api.nvim_set_keymap('n', 'tt', ':ObsidianTag', { noremap = true, vim.api.nvim_set_keymap('n', 'lb', ':ObsidianBacklinks', { noremap = true, silent = true }) -- Add a keybinding for calling ObsidianLink vim.api.nvim_set_keymap('v', 'fl', ':ObsidianLink', { noremap = true, silent = true }) +-- priority task +vim.api.nvim_set_keymap("n", "p1", "A 🔼", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("n", "p2", "A ⏫", { noremap = true, silent = true }) -- Configure Telescope to scroll files with ctrl+j/k local actions = require('telescope.actions')