blob: ccaddddbf464c0fbdf7477bddbe7c682584fe736 (
plain)
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
|
function Notify(title, message, level)
local notify = require('notify')
notify(message, level, { title = title })
end
function ToggleWrap()
if vim.wo.wrap then
vim.wo.wrap = false
Notify('Wrap disabled', 'info')
else
vim.wo.wrap = true
vim.wo.number = false
Notify('Wrap enabled', 'info')
end
end
function ToggleInlayHints()
local is_enabled = vim.lsp.inlay_hint.is_enabled({})
vim.lsp.inlay_hint.enable(not is_enabled)
if is_enabled then
Notify('Inlay Hints disabled', 'info')
else
Notify('Inlay Hints enabled', 'info')
end
end
|