From bfbf5fbd39fa75847bf23da2c46d12fe2728fb78 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 1 Sep 2021 10:29:23 +0200 Subject: add Windows support (#70) --- lua/nvim-lsp-installer/platform.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/nvim-lsp-installer/platform.lua (limited to 'lua/nvim-lsp-installer/platform.lua') diff --git a/lua/nvim-lsp-installer/platform.lua b/lua/nvim-lsp-installer/platform.lua new file mode 100644 index 00000000..0b327cf2 --- /dev/null +++ b/lua/nvim-lsp-installer/platform.lua @@ -0,0 +1,11 @@ +local M = {} + +function M.is_win() + return vim.fn.has "win32" == 1 +end + +function M.is_unix() + return vim.fn.has "unix" == 1 +end + +return M -- cgit v1.2.3-70-g09d2