diff --git a/init.lua b/init.lua index 1f91eb2..b83c276 100644 --- a/init.lua +++ b/init.lua @@ -10,8 +10,6 @@ require('gopls') require('code-completion') require('commands') -local vim = vim - -- disable netrw at the very start of your init.lua (strongly advised) vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 diff --git a/lazy-lock.json b/lazy-lock.json index fe2460d..17b0a11 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -17,6 +17,7 @@ "copilot.lua": { "branch": "master", "commit": "858bbfa6fa81c88fb1f64107d7981f1658619e0a" }, "dashboard-nvim": { "branch": "master", "commit": "63df28409d940f9cac0a925df09d3dc369db9841" }, "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, + "flatten.nvim": { "branch": "main", "commit": "e420e531d2ab24aebcf7b3c9fca28e6c5c34964d" }, "git-messenger.vim": { "branch": "master", "commit": "8a61bdfa351d4df9a9118ee1d3f45edbed617072" }, "gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" }, "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" }, @@ -47,6 +48,7 @@ "nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" }, "nvim-lspconfig": { "branch": "master", "commit": "9099871a7c7e1c16122e00d70208a2cd02078d80" }, "nvim-notify": { "branch": "master", "commit": "ebcdd8219e2a2cbc0a4bef68002f6867f1fde269" }, + "nvim-recorder": { "branch": "main", "commit": "61531ea45819e7a2c267c191360cee9ff269fc6b" }, "nvim-spectre": { "branch": "master", "commit": "9653847cf2f225648967f6e9363643e327387579" }, "nvim-spider": { "branch": "main", "commit": "828444de406bc7df3b30c8e000ce6f54f0754499" }, "nvim-surround": { "branch": "main", "commit": "a4e30d33add8a9743b4f518b3a788b3c8e5def71" }, diff --git a/lua/mappings.lua b/lua/mappings.lua index 0e31064..aa36096 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -77,6 +77,9 @@ vim.api.nvim_set_keymap("n", ",", "Telescope buffers", { norema -- Lspsaga vim.api.nvim_set_keymap("n", "aa", "Lspsaga outline", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("n", "li", "Lspsaga incoming_calls", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("n", "lo", "Lspsaga outgoing_calls", { noremap = true, silent = true }) + -- trouble vim.api.nvim_set_keymap("n", "tt", "TroubleToggle", { noremap = true, silent = true }) diff --git a/lua/plugins.lua b/lua/plugins.lua index e3666c2..23ece23 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -583,5 +583,23 @@ return { mappings = {} } end - } + }, + { + "willothy/flatten.nvim", + config = function() + require("flatten").setup({}) + end, + lazy = false, + priority = 1001, + }, + { + "chrisgrieser/nvim-recorder", + dependencies = "rcarriga/nvim-notify", -- optional + opts = {}, + config = function() + require("recorder").setup({ + slots = { "a", "b", "c", "d" } + }) + end, + }, }