diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 51af4bf..e5a5f50 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -18,7 +18,6 @@ "global-note.nvim": { "branch": "main", "commit": "1e0d4bba425d971ed3ce40d182c574a25507115c" }, "go.nvim": { "branch": "master", "commit": "6ad080424f4b96a584cf591721e8e13c102cce4e" }, "guihua.lua": { "branch": "master", "commit": "d783191eaa75215beae0c80319fcce5e6b3beeda" }, - "hierarchy-tree-go.nvim": { "branch": "main", "commit": "9fab9ddefe81edab4a144824955d2d085db3f49a" }, "indent-blankline.nvim": { "branch": "master", "commit": "e10626f7fcd51ccd56d7ffc00883ba7e0aa28f78" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "leap.nvim": { "branch": "main", "commit": "346a16ef942635a8ca5ff92e603d07e7e8be6cbe" }, diff --git a/nvim/.config/nvim/lua/plugins/editing.lua b/nvim/.config/nvim/lua/plugins/editing.lua index 4ca5455..8ec8db6 100644 --- a/nvim/.config/nvim/lua/plugins/editing.lua +++ b/nvim/.config/nvim/lua/plugins/editing.lua @@ -47,4 +47,17 @@ return { { 'gs', '(leap-from-window)', mode = { 'n', 'x', 'o' } }, } }, + + { + 'Wansmer/treesj', + dependencies = { 'nvim-treesitter/nvim-treesitter' }, + opts = { + use_default_keymaps = false, + }, + keys = { + { 'tg', function() require('treesj').toggle() end, desc = "[T]ree to[g]gle one-line" }, + { 'tj', function() require('treesj').join() end, desc = "[T]ree [J]oin one-line" }, + { 'ts', function() require('treesj').split() end, desc = "[T]ree [S]plit one-line" }, + }, + }, } diff --git a/nvim/.config/nvim/lua/plugins/file-explorer.lua b/nvim/.config/nvim/lua/plugins/file-explorer.lua new file mode 100644 index 0000000..d8e13c6 --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/file-explorer.lua @@ -0,0 +1,13 @@ +return { + { + 'stevearc/oil.nvim', + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = { + default_file_explorer = true, + delete_to_trash = true, + }, + keys = { + { "-", "Oil --float", desc = "Open parent directory" }, + }, + }, +} diff --git a/nvim/.config/nvim/lua/plugins/init.lua b/nvim/.config/nvim/lua/plugins/init.lua deleted file mode 100644 index 496e1ff..0000000 --- a/nvim/.config/nvim/lua/plugins/init.lua +++ /dev/null @@ -1,37 +0,0 @@ -return { - { - 'crusj/hierarchy-tree-go.nvim', - dependencies = 'neovim/nvim-lspconfig', - lazy = true, - }, - - { - "folke/trouble.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - - { - 'stevearc/oil.nvim', - dependencies = { "nvim-tree/nvim-web-devicons" }, - opts = { - default_file_explorer = true, - delete_to_trash = true, - }, - keys = { - { "-", "Oil --float", desc = "Open parent directory" }, - }, - }, - - { - 'Wansmer/treesj', - dependencies = { 'nvim-treesitter/nvim-treesitter' }, - opts = { - use_default_keymaps = false, - }, - keys = { - { 'tg', function() require('treesj').toggle() end, desc = "[T]ree to[g]gle one-line" }, - { 'tj', function() require('treesj').join() end, desc = "[T]ree [J]oin one-line" }, - { 'ts', function() require('treesj').split() end, desc = "[T]ree [S]plit one-line" }, - }, - }, -} diff --git a/nvim/.config/nvim/lua/plugins/lsp.lua b/nvim/.config/nvim/lua/plugins/lsp.lua index ec9af55..bc3f4bb 100644 --- a/nvim/.config/nvim/lua/plugins/lsp.lua +++ b/nvim/.config/nvim/lua/plugins/lsp.lua @@ -120,6 +120,7 @@ return { } end, }, + { 'nvimdev/lspsaga.nvim', dependencies = { @@ -154,4 +155,11 @@ return { vim.keymap.set({ 'n', 't' }, '', 'Lspsaga term_toggle', { desc = "[L]spsaga [T]erm toggle" }) end, }, + + { + "folke/trouble.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = {}, + cmd = 'Trouble' + }, }