-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
30 lines (27 loc) · 1.04 KB
/
init.lua
File metadata and controls
30 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- Suppress lspconfig deprecation warning (lspconfig still works in nvim 0.11)
local original_deprecate = vim.deprecate
vim.deprecate = function(name, alternative, version, plugin, backtrace)
if plugin == "nvim-lspconfig" then
return -- Suppress lspconfig warnings
end
return original_deprecate(name, alternative, version, plugin, backtrace)
end
-- Suppress position_encoding deprecation warning (plugins not yet updated for nvim 0.11)
local original_notify = vim.notify
local original_notify_once = vim.notify_once
local function should_suppress(msg)
return type(msg) == "string" and msg:match("position_encoding param is required")
end
vim.notify = function(msg, level, opts)
if should_suppress(msg) then return end
return original_notify(msg, level, opts)
end
vim.notify_once = function(msg, level, opts)
if should_suppress(msg) then return end
return original_notify_once(msg, level, opts)
end
require("core.settings")
require("core.keymaps")
require("core.lazy")
require("core.autocommand").setup()
require("keybinding")