We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54f0043 commit b287ccaCopy full SHA for b287cca
plugin/no-neck-pain.lua
@@ -4,6 +4,10 @@ end
4
5
_G.NoNeckPainLoaded = true
6
7
-vim.api.nvim_create_user_command("NoNeckPain", function()
8
- require("no-neck-pain").toggle()
9
-end, {})
+if vim.fn.has("nvim-0.7") == 0 then
+ vim.cmd("command NoNeckPain lua require('no-neck-pain').toggle()")
+else
10
+ vim.api.nvim_create_user_command("NoNeckPain", function()
11
+ require("no-neck-pain").toggle()
12
+ end, {})
13
+end
0 commit comments