2022-11-06 14:07:55 +00:00
|
|
|
--
|
|
|
|
-- setup some plugins
|
|
|
|
--
|
|
|
|
|
|
|
|
-- NvimTree empty setup using defaults
|
|
|
|
local tree_status_ok, tree = pcall(require, "nvim-tree")
|
|
|
|
if tree_status_ok then
|
|
|
|
tree.setup()
|
|
|
|
end
|
|
|
|
|
2023-06-22 07:41:55 +00:00
|
|
|
-- Symbols outline
|
|
|
|
local symbols_status_ok, symbols = pcall(require, "symbols-outline")
|
|
|
|
if symbols_status_ok then
|
|
|
|
symbols.setup()
|
|
|
|
end
|
|
|
|
|
2022-11-06 14:07:55 +00:00
|
|
|
-- Git signs (Gutter)
|
|
|
|
local gitsigns_status_ok, gitsigns = pcall(require, "gitsigns")
|
|
|
|
if gitsigns_status_ok then
|
2023-12-18 15:32:44 +00:00
|
|
|
gitsigns.setup {
|
|
|
|
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
|
|
|
current_line_blame_opts = {
|
|
|
|
virt_text = true,
|
|
|
|
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
|
|
|
|
delay = 1000,
|
|
|
|
ignore_whitespace = false,
|
|
|
|
},
|
|
|
|
current_line_blame_formatter = '[<abbrev_sha>] <author>, <author_time:%Y-%m-%d> - <summary>',
|
|
|
|
}
|
2022-11-06 14:07:55 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
-- Telescope
|
|
|
|
local _, _ = pcall(require, "telescope.builtin")
|
|
|
|
|
|
|
|
-- Autopairs
|
|
|
|
local autopairs_status_ok, autopairs = pcall(require, "nvim-autopairs")
|
|
|
|
if autopairs_status_ok then
|
|
|
|
autopairs.setup {}
|
|
|
|
end
|
2024-03-27 12:09:11 +00:00
|
|
|
|
|
|
|
-- Catppuccin colors
|
|
|
|
local catppuccin_status_ok, catppuccin = pcall(require, "catppuccin")
|
|
|
|
if catppuccin_status_ok then
|
|
|
|
catppuccin.setup {
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Debugger
|
|
|
|
local neodev_ok, neodev = pcall(require, "neodev")
|
|
|
|
local dapui_ok, dapui = pcall(require, "dapui")
|
|
|
|
local dap_virt_txt_ok, dap_virt_txt = pcall(require, "nvim-dap-virtual-text")
|
|
|
|
local mason_dap_ok, mason_dap = pcall(require, "mason-nvim-dap")
|
|
|
|
local dapgo_ok, dapgo = pcall(require, "dap-go")
|
|
|
|
if dapui_ok then
|
|
|
|
dapui.setup()
|
|
|
|
end
|
|
|
|
if neodev_ok then
|
|
|
|
neodev.setup({
|
|
|
|
library = { plugins = { "nvim-dap-ui" }, types = true },
|
|
|
|
})
|
|
|
|
end
|
|
|
|
if dap_virt_txt_ok then
|
|
|
|
dap_virt_txt.setup()
|
|
|
|
end
|
|
|
|
if mason_dap_ok then
|
|
|
|
mason_dap.setup {
|
|
|
|
handlers = {}, -- sets up dap in the predefined manner
|
|
|
|
}
|
|
|
|
end
|
|
|
|
if dapgo_ok then
|
|
|
|
dapgo.setup()
|
|
|
|
end
|
|
|
|
-- end debugger
|
|
|
|
--
|
|
|
|
|
|
|
|
-- notifications
|
|
|
|
local notify_ok, notify = pcall(require, "notify")
|
|
|
|
if notify_ok then
|
|
|
|
vim.notify = notify
|
|
|
|
end
|