diff --git a/README.md b/README.md index 5b79826..12c69e9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ If you are looking to get started with Neovim, I would instead recommend one of # System Requirements These are the general requirements to get started: -- Neovim 0.10 or later +- Neovim (latest git master) - git - tar diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index b7bc470..9f87dfc 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -14,16 +14,6 @@ limitations under the License. ]] -local function close_floating_windows() - for _, win in ipairs(vim.api.nvim_list_wins()) do - local cfg = vim.api.nvim_win_get_config(win) - if cfg.relative ~= "" then - vim.api.nvim_win_close(win, true) - end - end -end - - --- Tab mappings --- vim.keymap.set("n", "tn", vim.cmd.tabnew) vim.keymap.set("n", "tq", vim.cmd.tabclose) @@ -60,7 +50,7 @@ vim.keymap.set("n", "dp", vim.cmd.diffput) vim.keymap.set("x", "dp", ":diffput") vim.keymap.set("n", "do", vim.cmd.diffget) vim.keymap.set("x", "do", ":diffget") -vim.keymap.set("i", "", close_floating_windows) +vim.keymap.set("i", "", vim.cmd.fclose) -- Remove default mappings vim.keymap.set("", "", "")