diff options
author | Botond Hende <nettingman@gmail.com> | 2024-08-19 07:33:59 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-08-19 07:33:59 +0200 |
commit | b3f71f60b781bc0ec6a2b4ffd44d1303d6f848a9 (patch) | |
tree | 8ef3e3547509417bc5757c4b3a1f53d8e088a9f8 /home/.config | |
parent | bede35d0bd59ae26b4855c9c4c16f7eab5c36beb (diff) |
fixed nvim version check
Diffstat (limited to 'home/.config')
-rw-r--r-- | home/.config/nvim/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/home/.config/nvim/init.lua b/home/.config/nvim/init.lua index f348032..7b434d8 100644 --- a/home/.config/nvim/init.lua +++ b/home/.config/nvim/init.lua @@ -10,9 +10,9 @@ vim.opt.mouse = "" -- Disable mouse vim.opt.number = true -local r = vim.version.range('0.0.0 - 0.10.0') - -vim.cmd("colorscheme vim") +if vim.fn.has('nvim-0.10.0') == 1 then + vim.cmd("colorscheme vim") +end vim.keymap.set('', '<M-Up>', ':move-2<CR>', { silent = true }) vim.keymap.set('', '<M-Down>', ':move+1<CR>', { silent = true }) |