Chore: moved files, redone undotree, plugins are a little better

This commit is contained in:
2026-08-10 13:32:19 +02:00
parent a775122059
commit acf072e634
3 changed files with 29 additions and 33 deletions
+3 -13
View File
@@ -13,18 +13,8 @@ require("undotree").setup {
["move_change_next"] = "J", ["move_change_next"] = "J",
["move_change_prev"] = "K", ["move_change_prev"] = "K",
["action_enter"] = "<cr>", ["action_enter"] = "<cr>",
["enter_diffbuf"] = "p", ["enter_diffbuf"] = "p", -- is defined for both undotree and preview buffers, so it works as a toggle
["quit"] = "q", ["quit"] = "q", -- is defined for both undotree and preview buffers
["update_undotree_view"] = "S",
}, },
-- Deprecated
-- keymaps = {
-- ['j'] = "move_next",
-- ['k'] = "move_prev",
-- ['gj'] = "move2parent",
-- ['J'] = "move_change_next",
-- ['K'] = "move_change_prev",
-- ['<cr>'] = "action_enter",
-- ['p'] = "enter_diffbuf",
-- ['q'] = "quit",
-- },
} }
+1 -1
View File
@@ -17,7 +17,7 @@ map("n", "<leader>e", function()
end) end)
map("n", "<leader>g", require("telescope.builtin").live_grep, { desc = "Telescope grep" }) map("n", "<leader>g", require("telescope.builtin").live_grep, { desc = "Telescope grep" })
map("n", "<leader>f", require("telescope.builtin").find_files, { desc = "Telescope find files" }) map("n", "<leader>f", require("telescope.builtin").find_files, { desc = "Telescope find files" })
-- map("n", "<leader>u", require("config.modules.undotree").toggle, { noremap = true, silent = true }) map('n', '<leader>u', require('undotree').toggle, { noremap = true, silent = true })
-- Copilot Chat buffer -- Copilot Chat buffer
map("n", "<A-c>", vim.cmd.CopilotChatToggle) map("n", "<A-c>", vim.cmd.CopilotChatToggle)
+25 -19
View File
@@ -1,6 +1,6 @@
return { return {
{ {
require("config.snacks") require "config.snacks",
}, },
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
@@ -8,7 +8,7 @@ return {
build = ":TSUpdate", build = ":TSUpdate",
branch = "main", branch = "main",
config = function() config = function()
require("config.modules.treesitter") require "config.modules.treesitter"
end, end,
}, },
{ {
@@ -24,7 +24,7 @@ return {
{ {
"rmagatti/auto-session", "rmagatti/auto-session",
config = function() config = function()
require("config.modules.autosession") require "config.modules.autosession"
end, end,
}, },
{ {
@@ -40,19 +40,19 @@ return {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
event = "VeryLazy", event = "VeryLazy",
config = function() config = function()
require("config.other.barbar") require "config.other.barbar"
end, end,
}, },
{ {
"mawkler/modicator.nvim", "mawkler/modicator.nvim",
config = function() config = function()
require("config.gui.modicator") require "config.gui.modicator"
end, end,
}, },
{ {
"jiaoshijie/undotree", "jiaoshijie/undotree",
config = function() config = function()
require("config.modules.undotree") require "config.modules.undotree"
end, end,
}, },
{ {
@@ -63,7 +63,7 @@ return {
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
event = "InsertEnter", event = "InsertEnter",
config = function() config = function()
require("config.other.autopairs") require "config.other.autopairs"
end, end,
}, },
{ {
@@ -72,7 +72,7 @@ return {
{ {
"rcarriga/nvim-notify", "rcarriga/nvim-notify",
config = function() config = function()
require("config.other.notify") require "config.other.notify"
end, end,
}, },
{ {
@@ -80,7 +80,7 @@ return {
cmd = "Copilot", cmd = "Copilot",
event = "InsertEnter", event = "InsertEnter",
config = function() config = function()
require("config.ai.copilot") require "config.ai.copilot"
end, end,
}, },
{ {
@@ -91,13 +91,13 @@ return {
}, },
build = "make tiktoken", build = "make tiktoken",
config = function() config = function()
require("config.ai.copilotchat") require "config.ai.copilotchat"
end, end,
}, },
{ {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
config = function() config = function()
require("config.other.dapconf") require "config.other.dapconf"
end, end,
}, },
{ {
@@ -112,7 +112,7 @@ return {
"folke/lazydev.nvim", "folke/lazydev.nvim",
ft = "lua", ft = "lua",
opts = function() opts = function()
require("config.lazydev") require "config.lazydev"
end, end,
}, },
{ {
@@ -132,7 +132,7 @@ return {
"b0o/schemastore.nvim", "b0o/schemastore.nvim",
}, },
config = function() config = function()
require("config.format.lspconfig") require "config.format.lspconfig"
end, end,
}, },
{ {
@@ -163,7 +163,7 @@ return {
{ {
"f3fora/nvim-texlabconfig", "f3fora/nvim-texlabconfig",
config = function() config = function()
require("config.format.texlab") require "config.format.texlab"
end, end,
build = "go build", build = "go build",
}, },
@@ -183,13 +183,13 @@ return {
{ {
"aserowy/tmux.nvim", "aserowy/tmux.nvim",
config = function() config = function()
require("config.terminal.tmux") require "config.terminal.tmux"
end, end,
}, },
{ {
"rachartier/tiny-inline-diagnostic.nvim", "rachartier/tiny-inline-diagnostic.nvim",
config = function() config = function()
require("config.format.TID") require "config.format.TID"
end, end,
}, },
{ {
@@ -199,19 +199,19 @@ return {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
}, },
config = function() config = function()
require("config.other.harpoon") require "config.other.harpoon"
end, end,
}, },
{ {
"aznhe21/actions-preview.nvim", "aznhe21/actions-preview.nvim",
config = function() config = function()
require("config.other.actions-preview") require "config.other.actions-preview"
end, end,
}, },
{ {
"Zacharias-Brohn/zterm-navigator.nvim", "Zacharias-Brohn/zterm-navigator.nvim",
config = function() config = function()
require("config.terminal.zterm-navigator") require "config.terminal.zterm-navigator"
end, end,
}, },
{ {
@@ -219,4 +219,10 @@ return {
event = "LspAttach", event = "LspAttach",
opts = {}, opts = {},
}, },
{
"jiaoshijie/undotree",
config = function()
require "config.modules.undotree"
end,
},
} }