Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit b5e3022

Browse files
author
connorgmeean
committed
fix!: Remove 0.5 backwards compatibility.
1 parent 4c5b800 commit b5e3022

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

lua/doom/extras/autocmds/init.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,11 @@ end
166166

167167
-- Show line diagnostics on hover
168168
if not config.doom.enable_lsp_virtual_text then
169-
local show_diagnostics_function = "vim.diagnostic.open_float(nil, { focus = false })"
170-
if utils.nvim_is_05 then
171-
show_diagnostics_function =
172-
'vim.lsp.diagnostic.show_line_diagnostics({ focusable = false, border = "single" })'
173-
end
169+
local show_diagnostics_function = ""
174170
table.insert(autocmds["doom_extras"], {
175171
"CursorHold,CursorHoldI",
176172
"<buffer>",
177-
string.format("lua %s", show_diagnostics_function),
173+
"lua vim.diagnostic.open_float(nil, { focus = false })",
178174
})
179175
end
180176

lua/doom/utils/init.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ local system = require("doom.core.system")
1111

1212
-------------------- HELPERS --------------------
1313
--- Doom Nvim version
14-
utils.doom_version = "3.3.0-alpha1"
15-
16-
-- Check if Neovim version is 0.5, will be used to provide
17-
-- backward compatibility for a while before nuking support for 0.5
18-
utils.nvim_is_05 = vim.version().minor == 5
14+
utils.doom_version = "3.3.0"
1915

2016
--- For autocommands, extracted from
2117
--- https://github.com/norcalli/nvim_utils

0 commit comments

Comments
 (0)