feat: more cleaning up

This commit is contained in:
nydragon 2025-03-11 18:48:02 +01:00
parent 2bdee33e3e
commit c60f7b882b
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
8 changed files with 34 additions and 37 deletions

View file

@ -23,6 +23,7 @@ require("lazy").setup({
{ import = "plugins" },
{ import = "plugins/ui" },
{ import = "plugins/tools" },
{ import = "plugins/colorschemes" },
},
defaults = {
lazy = false,

View file

@ -70,7 +70,7 @@ return {
}),
})
require("cmp_git").setup()
require("cmp_git").setup({})
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ "/", "?" }, {

View file

@ -0,0 +1,8 @@
return {
"folke/tokyonight.nvim",
lazy = true,
opts = {},
config = function()
vim.cmd("colorscheme tokyonight-night")
end,
}

View file

@ -1,6 +0,0 @@
return {
"b0o/incline.nvim",
opts = {},
-- Optional: Lazy load Incline
event = "VeryLazy",
}

View file

@ -29,26 +29,7 @@ return {
require("telescope").load_extension("file_browser")
end,
},
{
"direnv/direnv.vim",
},
{
"akinsho/toggleterm.nvim",
version = "*",
opts = {
direction = "float",
},
config = function(_, opts)
local Terminal = require("toggleterm.terminal").Terminal
local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, direction = "float" })
function _Lazygit_toggle()
lazygit:toggle()
end
require("toggleterm").setup(opts)
end,
},
"direnv/direnv.vim",
--:}}}
--: Visuals {{u{
{
@ -110,13 +91,6 @@ return {
{
"stevearc/dressing.nvim",
},
{
"folke/tokyonight.nvim",
lazy = true,
opts = {},
config = function()
vim.cmd("colorscheme tokyonight-night")
end,
},
--:}}}
}

View file

@ -14,5 +14,10 @@ return { -- fuzzy file finder
require("telescope.builtin").current_buffer_fuzzy_find,
desc = "Search for a string in the current buffer",
},
{
"<leader>ff",
require("telescope.builtin").find_files,
desc = "Find File",
},
},
}

View file

@ -1,11 +1,28 @@
return {
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "CmdlineEnter",
---@type trouble.Config
opts = {
---@type trouble.Window.opts
win = { type = "split", position = "right" },
auto_close = true,
---@type table<string, trouble.Mode>
modes = {
-- sources define their own modes, which you can use directly,
-- or override like in the example below
lsp_references = {
-- some modes are configurable, see the source code for more details
params = {
include_declaration = true,
},
},
},
icons = {
indent = {
last = "╰╴", -- rounded
},
},
},
keys = {
{

View file

@ -16,7 +16,6 @@ return {
{ "<leader>c", desc = "NerdCommenter" },
{ "<leader>f", desc = "Telescope - Finder" },
{ "<leader>fb", "<cmd>Telescope buffers<CR>", desc = "Find Open Buffers" },
{ "<leader>ff", require("telescope").extensions.file_browser.file_browser, desc = "Find File" },
{ "<leader>fg", "<cmd>Telescope live_grep<CR>", desc = "Live Grep" },
{ "<leader>fh", "<cmd>Telescope help_tags<CR>", desc = "Find Help" },
{ "<leader>fi", "<cmd>Telescope builtin<cr>", desc = "Search all Telescope builtins" },
@ -28,6 +27,5 @@ return {
{ "<leader>r", "<cmd>lua vim.lsp.buf.rename()<CR>", desc = "Rename a token" },
{ "<leader>t1", "<Cmd>BufferGoto 1<CR>", desc = "Go to Buffer 1" },
{ "<leader>td", "<Cmd>BufferClose<CR>", desc = "Close Current Buffer" },
{ "<leader>tt", require("telescope").extensions.file_browser.file_browser, desc = "Open the file browser" },
},
}