diff options
Diffstat (limited to '.config/nvim/lua/custom/globals.lua')
| -rw-r--r-- | .config/nvim/lua/custom/globals.lua | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/.config/nvim/lua/custom/globals.lua b/.config/nvim/lua/custom/globals.lua deleted file mode 100644 index 25f26d1..0000000 --- a/.config/nvim/lua/custom/globals.lua +++ /dev/null @@ -1,31 +0,0 @@ -function Notify(message, title, level) - if not title then - if not level then - title = 'info' - else - title = level - end - end - vim.notify(message, level, { title = ' ' .. title }) -end - -function ToggleWrap() - if vim.wo.wrap then - vim.wo.wrap = false - Notify('Wrap disabled') - else - vim.wo.wrap = true - vim.wo.number = false - Notify('Wrap enabled') - 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') - else - Notify('Inlay Hints enabled') - end -end |
