This commit is contained in:
Zam Kokott
2025-10-06 09:31:42 +02:00
parent e448805566
commit abcbc64373
5 changed files with 12 additions and 73 deletions

View File

@@ -5,9 +5,9 @@ return
priority = 1000,
lazy = false,
config = function()
require("catppuccin").setup({
transparent_background = true,
})
-- require("catppuccin").setup({
-- transparent_background = true,
-- })
vim.cmd.colorscheme "catppuccin"
end

View File

@@ -1,44 +0,0 @@
return {
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
local harpoon = require("harpoon")
-- Setup Harpoon with Telescope
local conf = require("telescope.config").values
local function toggle_telescope(harpoon_files)
local file_paths = {}
for _, item in ipairs(harpoon_files.items) do
table.insert(file_paths, item.value)
end
require("telescope.pickers")
.new({}, {
prompt_title = "Harpoon",
finder = require("telescope.finders").new_table({
results = file_paths,
}),
previewer = conf.file_previewer({}),
sorter = conf.generic_sorter({}),
})
:find()
end
-- Setup Harpoon keybinds
harpoon:setup()
vim.keymap.set("n", "<leader>a", function()
harpoon:list():add()
end)
vim.keymap.set("n", "<C-e>", function()
toggle_telescope(harpoon:list())
end)
-- vim.keymap.set("n", "<A-p>", function()
-- harpoon:list():prev()
-- end)
-- vim.keymap.set("n", "<A-n>", function()
-- harpoon:list():next()
-- end)
end,
}

View File

@@ -16,18 +16,11 @@ return {
ensure_installed = {
"lua_ls",
"gopls",
"rust_analyzer",
"html",
"zls",
"pyright",
"ols",
"clangd",
"omnisharp",
"yamlls",
"svelte",
"templ",
"vtsls",
"vue_ls",
"ansiblels",
},
handlers = {
function(server_name)
@@ -49,15 +42,6 @@ return {
}
})
local lspconfig = require("lspconfig")
lspconfig.gleam.setup({
capabilities = capabilities,
handlers = handlers,
cmd = { "gleam", "lsp" },
root_dir = lspconfig.util.root_pattern("gleam.toml", ".git"),
filetypes = { "gleam" },
})
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, {})

View File

@@ -21,7 +21,7 @@ return {
visible = false,
show_hidden_count = true,
hide_dotfiles = false,
hide_gitignored = true,
hide_gitignored = false,
hide_by_name = {
'.git',
'bin',