Skip to content

Commit

Permalink
Add quicker.nvim and neoconf.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Aug 12, 2024
1 parent 4fec0b8 commit c4f3efb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nvim/lua/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ map({"n", "v"}, "<leader>d", [["_d]])
map({"n", "v"}, "<leader>D", [["_D]])
map({"n", "v"}, "<leader>c", [["_c]])
map({"n", "v"}, "<leader>C", [["_C]])
map("n", "<leader>tq", "<cmd>tabclose<cr>", { desc = "[t]ab [q] close" })
map("n", "<leader>tc", "<cmd>tabnew<CR>", { desc = "[t]ab [n]ew"})
map("n", "<leader>tn", "<cmd>tabnew<CR>", { desc = "[t]ab [c]reate"})
map("n", "<leader>aq", "<cmd>tabclose<cr>", { desc = "t[a]b [q] close" })
map("n", "<leader>ac", "<cmd>tabnew<CR>", { desc = "t[a]b [n]ew"})
map("n", "<leader>an", "<cmd>tabnew<CR>", { desc = "t[a]b [c]reate"})
map("n", "<leader>tf", function()
if vim.b.orbik_disable_autoformat then
common.enableAutoformat()
Expand Down
46 changes: 45 additions & 1 deletion nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ local plugins = {
toggle_key_flip_floatwin_setting = true,
} },
{'jay-babu/mason-null-ls.nvim'},
{'folke/neoconf.nvim', opts = {}}, -- autoload settings.json
},
cond = not_vscode
},
Expand Down Expand Up @@ -848,6 +849,7 @@ local plugins = {
wk.add({
{
mode = { "n", "v" },
{ "<leader>a", group = "tab" },
{ "<leader>b", group = "buffer/bookmarks" },
{ "<leader>e", group = "debug" },
{ "<leader>g", group = "diffview" },
Expand All @@ -856,7 +858,7 @@ local plugins = {
{ "<leader>s", group = "search" },
{ "<leader>sb", group = "bookmarks" },
{ "<leader>sf", group = "go to file" },
{ "<leader>t", group = "toogle/tab" },
{ "<leader>t", group = "toogle" },
{ "<leader>v", group = "compare" },
{ "<leader>w", group = "workspace" },
{ "<leader>x", group = "trouble" },
Expand Down Expand Up @@ -1114,6 +1116,48 @@ local plugins = {
},
cond = not_vscode
},
{
'stevearc/quicker.nvim',
ft = {"qf"},
keys = {
{ "<leader>tq", function() require("quicker").toggle() end, desc = "[t]oggle [q]uickfix" },
{ "<leader>tl", function() require("quicker").toggle({ loclist = true }) end, desc = "[t]oggle [l]oclist" },
},
opts = {
keys = {
{
">",
function()
require("quicker").expand({ before = 2, after = 2, add_to_existing = true })
end,
desc = "Expand quickfix context",
},
{
"<",
function()
require("quicker").collapse()
end,
desc = "Collapse quickfix context",
},
},
{
"<leader>Q",
function()
vim.fn.setqflist({}, "a", {
items = {
{
bufnr = vim.api.nvim_get_current_buf(),
lnum = vim.api.nvim_win_get_cursor(0)[1],
text = vim.api.nvim_get_current_line(),
},
},
})
end,
desc = "Add to [Q]uickfix",
},
},
cond = not_vscode
},
{'lambdalisue/suda.vim', cmd = {'SudaRead', 'SudaWrite'}, cond = not_vscode},
{
"dnlhc/glance.nvim",
Expand Down

0 comments on commit c4f3efb

Please sign in to comment.