Skip to content

Commit

Permalink
Move some stuff out to keys, make more plugins lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ggs committed Mar 15, 2024
1 parent bd8b013 commit f31b215
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
10 changes: 5 additions & 5 deletions nvim/.config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" },
"conform.nvim": { "branch": "master", "commit": "c92e265eb94a78bf0033a54f1f734fd7d69f48b9" },
"copilot.vim": { "branch": "release", "commit": "3b39e786d865df9ba77fe61624d6ee646528a809" },
"copilot.vim": { "branch": "release", "commit": "9484e35cf222e9360e05450622a884f95c662c4c" },
"fidget.nvim": { "branch": "main", "commit": "4e854f3299e21d1c18279add340428a97520fc44" },
"gitsigns.nvim": { "branch": "main", "commit": "4e348641b8206c3b8d23080999e3ddbe4ca90efc" },
"guess-indent.nvim": { "branch": "main", "commit": "b8ae749fce17aa4c267eec80a6984130b94f80b2" },
"lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
"lualine.nvim": { "branch": "master", "commit": "26dac2fcadb6e622790ab08e36d0dba3d3765398" },
"lualine.nvim": { "branch": "master", "commit": "af4c3cf17206810880d2a93562e0a4c0d901c684" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "1212fb6082b7177dde17ea65e429e027835aeb40" },
"mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" },
"neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" },
Expand All @@ -23,8 +23,8 @@
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-config-local": { "branch": "main", "commit": "83bb6d9881653a5cf8b489ba8a6fe5a06049a10a" },
"nvim-lspconfig": { "branch": "master", "commit": "4bdd3800b4148f670c6cf55ef65f490148eeb550" },
"nvim-tree.lua": { "branch": "master", "commit": "041dbd18f440207ad161503a384e7c82d575db66" },
"nvim-treesitter": { "branch": "master", "commit": "35c1a32b267c969a024ef651c8a25d7ff9018d22" },
"nvim-tree.lua": { "branch": "master", "commit": "707b24af91a1d05823099ed8c5450796290466ba" },
"nvim-treesitter": { "branch": "master", "commit": "f87882858438834d2fbb6379aa2be37de901751b" },
"nvim-treesitter-context": { "branch": "master", "commit": "b8b7e52c1517d401d7c519787d5dc4528c41291a" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
"nvim-ts-rainbow": { "branch": "master", "commit": "ef95c15a935f97c65a80e48e12fe72d49aacf9b9" },
Expand All @@ -33,7 +33,7 @@
"trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" },
"vim-fugitive": { "branch": "master", "commit": "41beedabc7e948c787ea5696e04c3544c3674e23" },
"vim-gutentags": { "branch": "master", "commit": "aa47c5e29c37c52176c44e61c780032dfacef3dd" },
"vim-test": { "branch": "master", "commit": "46d2067586b788e2194e812bbfdbb2061b93a5ee" },
"vim-test": { "branch": "master", "commit": "a49c9cade75e97cace5e3ba545ce82d02f689feb" },
"vim-vsnip": { "branch": "master", "commit": "02a8e79295c9733434aab4e0e2b8c4b7cea9f3a9" },
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
}
20 changes: 11 additions & 9 deletions nvim/.config/nvim/lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ return {
"nvim-telescope/telescope.nvim",
tag = "0.1.6",
dependencies = { "nvim-lua/plenary.nvim" },
init = function()
vim.keymap.set("n", "<Leader>f", ":Telescope find_files<CR>")
vim.keymap.set("n", "<Leader>g", ":Telescope live_grep<CR>")
vim.keymap.set("n", "<Leader>b", ":Telescope buffers<CR>")
vim.keymap.set("n", "<Leader>d", ":Telescope tags<CR>")
vim.keymap.set("n", "<Leader>/", ":Telescope current_buffer_fuzzy_find<CR>")
vim.keymap.set("n", "<Leader>k", ":Telescope keymaps<CR>")
vim.keymap.set("n", "<Leader>s", ":Telescope lsp_dynamic_workspace_symbols<CR>")
end,
cmd = "Telescope",
keys = {
{ "<Leader>f", ":Telescope find_files<CR>" },
{ "<Leader>g", ":Telescope live_grep<CR>" },
{ "<Leader>b", ":Telescope buffers<CR>" },
{ "<Leader>d", ":Telescope tags<CR>" },
{ "<Leader>/", ":Telescope current_buffer_fuzzy_find<CR>" },
{ "<Leader>k", ":Telescope keymaps<CR>" },
{ "<Leader>s", ":Telescope lsp_dynamic_workspace_symbols<CR>" },
},
lazy = true,
}
2 changes: 2 additions & 0 deletions nvim/.config/nvim/lua/plugins/trouble.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
return {
"folke/trouble.nvim",
cmd = "Trouble",
opts = {
fold_open = "",
fold_closed = "",
Expand All @@ -12,4 +13,5 @@ return {
other = "O",
},
},
lazy = true,
}
9 changes: 6 additions & 3 deletions nvim/.config/nvim/lua/plugins/vim-test.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
return {
"vim-test/vim-test",
cmd = { "TestNearest", "TestFile" },
keys = {
{ "tn", ":TestNearest<CR>" },
{ "tf", ":TestFile<CR>" },
},
init = function()
vim.keymap.set("n", "tn", ":TestNearest<CR>")
vim.keymap.set("n", "tf", ":TestFile<CR>")

vim.cmd([[
let test#strategy = "neovim"
let test#neovim#term_position = "vert"
" Override this value in local.nvimrc
let test#python#djangotest#executable="docker exec web python manage.py test"
]])
end,
lazy = true,
}

0 comments on commit f31b215

Please sign in to comment.