You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
568 B
22 lines
568 B
2 years ago
|
|
||
|
local fn = vim.fn
|
||
|
local utils = require("julz.utils")
|
||
|
|
||
|
vim.g.is_win = (utils.has("win32") or utils.has("win64")) and true or false
|
||
|
vim.is_linux = (utils.has("unix") and (not utils.has("macunix"))) and true or false
|
||
|
vim.g.is_bsd = (jit.os == "BSD") and true or false
|
||
|
|
||
|
if vim.g.is_bsd then
|
||
|
print("OS is BSD. nvim version:" .. utils.get_nvim_version())
|
||
|
end
|
||
|
|
||
|
if vim.g.is_win then
|
||
|
print("OS is Windows. nvim version:" .. utils.get_nvim_version())
|
||
|
end
|
||
|
|
||
|
if vim.g.is_linux then
|
||
|
print("OS is Linux. nvim version:" .. utils.get_nvim_version())
|
||
|
end
|
||
|
|
||
|
|