Format workspace with CodeFormat
This commit is contained in:
@@ -14,15 +14,15 @@
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
vim.g.is_win = vim.fn.has('win32') == 1 or vim.fn.has('win64') == 1
|
||||
vim.g.is_linux = vim.fn.has('unix') == 1 and vim.fn.has('win64') ~= 1
|
||||
vim.g.is_mac = vim.fn.has('macunix') == 1
|
||||
vim.g.is_win = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
|
||||
vim.g.is_linux = vim.fn.has("unix") == 1 and vim.fn.has("win64") ~= 1
|
||||
vim.g.is_mac = vim.fn.has("macunix") == 1
|
||||
|
||||
if vim.fn.executable('python3') then
|
||||
if vim.fn.executable("python3") then
|
||||
if vim.g.is_win then
|
||||
vim.g.python3_host_prog=string.gsub(vim.fn.exepath('python3'), '.exe$', '')
|
||||
vim.g.python3_host_prog = string.gsub(vim.fn.exepath("python3"), ".exe$", "")
|
||||
elseif vim.g.is_linux or vim.g.is_mac then
|
||||
vim.g.python3_host_prog=vim.fn.exepath('python3')
|
||||
vim.g.python3_host_prog = vim.fn.exepath("python3")
|
||||
end
|
||||
else
|
||||
error("Python 3 executable not found! You must install Python 3 and set its PATH correctly!")
|
||||
|
||||
Reference in New Issue
Block a user