From b3f71f60b781bc0ec6a2b4ffd44d1303d6f848a9 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Mon, 19 Aug 2024 07:33:59 +0200 Subject: fixed nvim version check --- home/.config/nvim/init.lua | 6 +++--- 1 file 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('', '', ':move-2', { silent = true }) vim.keymap.set('', '', ':move+1', { silent = true }) -- cgit v1.2.3-70-g09d2