mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Merge branch 'main' into dotfiles
This commit is contained in:
commit
cc2f6a1faf
2 changed files with 47 additions and 52 deletions
|
|
@ -6,7 +6,8 @@ return {
|
||||||
width = vim.api.nvim_win_get_width(0) - 4,
|
width = vim.api.nvim_win_get_width(0) - 4,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
keys = {
|
keys = function()
|
||||||
|
local keys = {
|
||||||
{
|
{
|
||||||
"<leader>H",
|
"<leader>H",
|
||||||
function()
|
function()
|
||||||
|
|
@ -21,41 +22,18 @@ return {
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Quick Menu",
|
desc = "Harpoon Quick Menu",
|
||||||
},
|
}
|
||||||
{
|
}
|
||||||
"<leader>1",
|
|
||||||
|
for i = 1, 5 do
|
||||||
|
table.insert(keys, {
|
||||||
|
"<leader>" .. i,
|
||||||
function()
|
function()
|
||||||
require("harpoon"):list():select(1)
|
require("harpoon"):list():select(i)
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon to File 1",
|
desc = "Harpoon to File " .. i,
|
||||||
},
|
})
|
||||||
{
|
end
|
||||||
"<leader>2",
|
return keys
|
||||||
function()
|
end
|
||||||
require("harpoon"):list():select(2)
|
|
||||||
end,
|
|
||||||
desc = "Harpoon to File 2",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>3",
|
|
||||||
function()
|
|
||||||
require("harpoon"):list():select(3)
|
|
||||||
end,
|
|
||||||
desc = "Harpoon to File 3",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>4",
|
|
||||||
function()
|
|
||||||
require("harpoon"):list():select(4)
|
|
||||||
end,
|
|
||||||
desc = "Harpoon to File 4",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>5",
|
|
||||||
function()
|
|
||||||
require("harpoon"):list():select(5)
|
|
||||||
end,
|
|
||||||
desc = "Harpoon to File 5",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,23 @@ local function have(path)
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
bashls = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
vim.list_extend(opts.ensure_installed or {}, {
|
||||||
|
"shfmt",
|
||||||
|
"shellcheck",
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
-- add some stuff to treesitter
|
-- add some stuff to treesitter
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue