fix crap lua formatting
This commit is contained in:
@ -17,27 +17,45 @@ return {
|
|||||||
table.insert(file_paths, item.value)
|
table.insert(file_paths, item.value)
|
||||||
end
|
end
|
||||||
|
|
||||||
require("telescope.pickers").new({}, {
|
require("telescope.pickers")
|
||||||
|
.new({}, {
|
||||||
prompt_title = "Harpoon",
|
prompt_title = "Harpoon",
|
||||||
finder = require("telescope.finders").new_table({
|
finder = require("telescope.finders").new_table({
|
||||||
results = file_paths,
|
results = file_paths,
|
||||||
}),
|
}),
|
||||||
previewer = conf.file_previewer({}),
|
previewer = conf.file_previewer({}),
|
||||||
sorter = conf.generic_sorter({}),
|
sorter = conf.generic_sorter({}),
|
||||||
}):find()
|
})
|
||||||
|
:find()
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
vim.keymap.set("n", "<leader>a", function()
|
||||||
|
harpoon:list():add()
|
||||||
|
end)
|
||||||
-- vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
-- vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
vim.keymap.set("n", "<C-e>", function() toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window" })
|
vim.keymap.set("n", "<C-e>", function()
|
||||||
|
toggle_telescope(harpoon:list())
|
||||||
|
end, { desc = "Open harpoon window" })
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
vim.keymap.set("n", "<C-h>", function()
|
||||||
vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end)
|
harpoon:list():select(1)
|
||||||
vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end)
|
end)
|
||||||
vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) end)
|
vim.keymap.set("n", "<C-t>", function()
|
||||||
|
harpoon:list():select(2)
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<C-n>", function()
|
||||||
|
harpoon:list():select(3)
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<C-s>", function()
|
||||||
|
harpoon:list():select(4)
|
||||||
|
end)
|
||||||
|
|
||||||
-- Toggle previous & next buffers stored within Harpoon list
|
-- Toggle previous & next buffers stored within Harpoon list
|
||||||
vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
|
vim.keymap.set("n", "<C-S-P>", function()
|
||||||
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
|
harpoon:list():prev()
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<C-S-N>", function()
|
||||||
|
harpoon:list():next()
|
||||||
|
end)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
opts = {
|
opts = {},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ return {
|
|||||||
init_options = {
|
init_options = {
|
||||||
formatter = "standard",
|
formatter = "standard",
|
||||||
linters = { "standard" },
|
linters = { "standard" },
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
-- lspconfig.standardrb.setup({})
|
-- lspconfig.standardrb.setup({})
|
||||||
lspconfig.bashls.setup({})
|
lspconfig.bashls.setup({})
|
||||||
|
@ -2,5 +2,5 @@ return {
|
|||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-tree").setup()
|
require("nvim-tree").setup()
|
||||||
end
|
end,
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,6 @@ vim.cmd("set shiftwidth=4")
|
|||||||
vim.cmd("set smartindent")
|
vim.cmd("set smartindent")
|
||||||
|
|
||||||
vim.wo.number = true
|
vim.wo.number = true
|
||||||
vim.cmd.colorscheme "tokyonight"
|
vim.cmd.colorscheme("tokyonight")
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
|
Reference in New Issue
Block a user