mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Use proper true or false value for boolean variables
In lua, 0 and empty string is true, which is counter-intuitive and different from vim script. So we need to use proper boolean type for vim script global variables, instead of numbers.
This commit is contained in:
@@ -109,7 +109,7 @@ lspconfig.vimls.setup{
|
||||
}
|
||||
|
||||
local sumneko_binary_path = vim.fn.exepath('lua-language-server')
|
||||
if vim.g.is_mac > 0 or vim.g.is_linux > 0 and sumneko_binary_path ~= '' then
|
||||
if vim.g.is_mac or vim.g.is_linux and sumneko_binary_path ~= '' then
|
||||
local sumneko_root_path = vim.fn.fnamemodify(sumneko_binary_path, ':h:h:h')
|
||||
|
||||
local runtime_path = vim.split(package.path, ';')
|
||||
|
||||
Reference in New Issue
Block a user