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:
@@ -1,9 +1,9 @@
|
||||
"{ Global Variable
|
||||
|
||||
"{{ Custom variables
|
||||
let g:is_win = has('win32') || has('win64')
|
||||
let g:is_linux = has('unix') && !has('macunix')
|
||||
let g:is_mac = has('macunix')
|
||||
let g:is_win = (has('win32') || has('win64')) ? v:true : v:false
|
||||
let g:is_linux = (has('unix') && !has('macunix')) ? v:true : v:false
|
||||
let g:is_mac = has('macunix') ? v:true : v:false
|
||||
"}}
|
||||
|
||||
"{{ Builtin variables
|
||||
|
||||
Reference in New Issue
Block a user