diff options
author | opalmay <[email protected]> | 2023-02-17 13:40:41 +0200 |
---|---|---|
committer | opalmay <[email protected]> | 2023-02-17 13:40:41 +0200 |
commit | c1325498a231434fc0c30a4defd4eb14beb82b1f (patch) | |
tree | 9d0d418e12ec9829db46ff3d8150899130f58801 /lua | |
parent | ddc86f3a8aaa1afd36cf8f1a46a29a57922efc8a (diff) |
feat: lock new installations to nvim 0.9+
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/bootstrap.lua | 4 | ||||
-rw-r--r-- | lua/lvim/core/breadcrumbs.lua | 42 | ||||
-rw-r--r-- | lua/lvim/utils/hooks.lua | 4 |
3 files changed, 24 insertions, 26 deletions
diff --git a/lua/lvim/bootstrap.lua b/lua/lvim/bootstrap.lua index a2a97cea..a5eb1c17 100644 --- a/lua/lvim/bootstrap.lua +++ b/lua/lvim/bootstrap.lua @@ -1,7 +1,7 @@ local M = {} -if vim.fn.has "nvim-0.8" ~= 1 then - vim.notify("Please upgrade your Neovim base installation. Lunarvim requires v0.8+", vim.log.levels.WARN) +if vim.fn.has "nvim-0.9" ~= 1 then + vim.notify("Please upgrade your Neovim base installation. Lunarvim requires v0.9+", vim.log.levels.WARN) vim.wait(5000, function() ---@diagnostic disable-next-line: redundant-return-value return false diff --git a/lua/lvim/core/breadcrumbs.lua b/lua/lvim/core/breadcrumbs.lua index 0bf87a45..0cb84f50 100644 --- a/lua/lvim/core/breadcrumbs.lua +++ b/lua/lvim/core/breadcrumbs.lua @@ -208,29 +208,27 @@ end M.create_winbar = function() vim.api.nvim_create_augroup("_winbar", {}) - if vim.fn.has "nvim-0.8" == 1 then - vim.api.nvim_create_autocmd({ - "CursorHoldI", - "CursorHold", - "BufWinEnter", - "BufFilePost", - "InsertEnter", - "BufWritePost", - "TabClosed", - "TabEnter", - }, { - group = "_winbar", - callback = function() - if lvim.builtin.breadcrumbs.active then - local status_ok, _ = pcall(vim.api.nvim_buf_get_var, 0, "lsp_floating_window") - if not status_ok then - -- TODO: - require("lvim.core.breadcrumbs").get_winbar() - end + vim.api.nvim_create_autocmd({ + "CursorHoldI", + "CursorHold", + "BufWinEnter", + "BufFilePost", + "InsertEnter", + "BufWritePost", + "TabClosed", + "TabEnter", + }, { + group = "_winbar", + callback = function() + if lvim.builtin.breadcrumbs.active then + local status_ok, _ = pcall(vim.api.nvim_buf_get_var, 0, "lsp_floating_window") + if not status_ok then + -- TODO: + require("lvim.core.breadcrumbs").get_winbar() end - end, - }) - end + end + end, + }) end return M diff --git a/lua/lvim/utils/hooks.lua b/lua/lvim/utils/hooks.lua index af9ca99a..72094c84 100644 --- a/lua/lvim/utils/hooks.lua +++ b/lua/lvim/utils/hooks.lua @@ -42,10 +42,10 @@ end function M.run_post_update() Log:debug "Starting post-update hook" - if vim.fn.has "nvim-0.8" ~= 1 then + if vim.fn.has "nvim-0.9" ~= 1 then local compat_tag = "1.1.4" vim.notify( - "Please upgrade your Neovim base installation. Newer version of Lunarvim requires v0.7+", + "Please upgrade your Neovim base installation. Newer version of Lunarvim requires v0.9+", vim.log.levels.WARN ) vim.wait(1000) |