feat: more cleaning up
This commit is contained in:
parent
2bdee33e3e
commit
c60f7b882b
8 changed files with 34 additions and 37 deletions
|
@ -23,6 +23,7 @@ require("lazy").setup({
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
{ import = "plugins/ui" },
|
{ import = "plugins/ui" },
|
||||||
{ import = "plugins/tools" },
|
{ import = "plugins/tools" },
|
||||||
|
{ import = "plugins/colorschemes" },
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
|
|
@ -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).
|
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
||||||
cmp.setup.cmdline({ "/", "?" }, {
|
cmp.setup.cmdline({ "/", "?" }, {
|
||||||
|
|
8
lua/plugins/colorschemes/tokyonight.lua
Normal file
8
lua/plugins/colorschemes/tokyonight.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
"folke/tokyonight.nvim",
|
||||||
|
lazy = true,
|
||||||
|
opts = {},
|
||||||
|
config = function()
|
||||||
|
vim.cmd("colorscheme tokyonight-night")
|
||||||
|
end,
|
||||||
|
}
|
|
@ -1,6 +0,0 @@
|
||||||
return {
|
|
||||||
"b0o/incline.nvim",
|
|
||||||
opts = {},
|
|
||||||
-- Optional: Lazy load Incline
|
|
||||||
event = "VeryLazy",
|
|
||||||
}
|
|
|
@ -29,26 +29,7 @@ return {
|
||||||
require("telescope").load_extension("file_browser")
|
require("telescope").load_extension("file_browser")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"direnv/direnv.vim",
|
"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,
|
|
||||||
},
|
|
||||||
--:}}}
|
--:}}}
|
||||||
--: Visuals {{u{
|
--: Visuals {{u{
|
||||||
{
|
{
|
||||||
|
@ -110,13 +91,6 @@ return {
|
||||||
{
|
{
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"folke/tokyonight.nvim",
|
|
||||||
lazy = true,
|
|
||||||
opts = {},
|
|
||||||
config = function()
|
|
||||||
vim.cmd("colorscheme tokyonight-night")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
--:}}}
|
--:}}}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,5 +14,10 @@ return { -- fuzzy file finder
|
||||||
require("telescope.builtin").current_buffer_fuzzy_find,
|
require("telescope.builtin").current_buffer_fuzzy_find,
|
||||||
desc = "Search for a string in the current buffer",
|
desc = "Search for a string in the current buffer",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<leader>ff",
|
||||||
|
require("telescope.builtin").find_files,
|
||||||
|
desc = "Find File",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,28 @@
|
||||||
return {
|
return {
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
event = "CmdlineEnter",
|
||||||
---@type trouble.Config
|
---@type trouble.Config
|
||||||
opts = {
|
opts = {
|
||||||
---@type trouble.Window.opts
|
---@type trouble.Window.opts
|
||||||
win = { type = "split", position = "right" },
|
win = { type = "split", position = "right" },
|
||||||
auto_close = true,
|
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 = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,6 @@ return {
|
||||||
{ "<leader>c", desc = "NerdCommenter" },
|
{ "<leader>c", desc = "NerdCommenter" },
|
||||||
{ "<leader>f", desc = "Telescope - Finder" },
|
{ "<leader>f", desc = "Telescope - Finder" },
|
||||||
{ "<leader>fb", "<cmd>Telescope buffers<CR>", desc = "Find Open Buffers" },
|
{ "<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>fg", "<cmd>Telescope live_grep<CR>", desc = "Live Grep" },
|
||||||
{ "<leader>fh", "<cmd>Telescope help_tags<CR>", desc = "Find Help" },
|
{ "<leader>fh", "<cmd>Telescope help_tags<CR>", desc = "Find Help" },
|
||||||
{ "<leader>fi", "<cmd>Telescope builtin<cr>", desc = "Search all Telescope builtins" },
|
{ "<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>r", "<cmd>lua vim.lsp.buf.rename()<CR>", desc = "Rename a token" },
|
||||||
{ "<leader>t1", "<Cmd>BufferGoto 1<CR>", desc = "Go to Buffer 1" },
|
{ "<leader>t1", "<Cmd>BufferGoto 1<CR>", desc = "Go to Buffer 1" },
|
||||||
{ "<leader>td", "<Cmd>BufferClose<CR>", desc = "Close Current Buffer" },
|
{ "<leader>td", "<Cmd>BufferClose<CR>", desc = "Close Current Buffer" },
|
||||||
{ "<leader>tt", require("telescope").extensions.file_browser.file_browser, desc = "Open the file browser" },
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue