configs/home/.config/nvim/init.vim

30 lines
603 B
VimL
Raw Permalink Normal View History

2023-03-20 22:53:00 +01:00
lua << EOF
2023-06-28 16:34:24 +02:00
local BinaryFormat = package.cpath:match("%p[\\|/]?%p(%a+)")
if BinaryFormat == "dll" then
function os.name()
return "Windows"
end
elseif BinaryFormat == "so" then
function os.name()
return "Linux"
end
elseif BinaryFormat == "dylib" then
function os.name()
return "MacOS"
end
end
2023-03-20 22:53:00 +01:00
if vim.g.started_by_firenvim == true then
vim.cmd('runtime firenvim.vim')
2023-06-16 22:58:38 +02:00
vim.cmd('runtime common.vim')
2023-03-20 22:53:00 +01:00
else
2023-06-16 22:58:38 +02:00
vim.cmd('runtime common.vim')
2023-03-20 22:53:00 +01:00
vim.cmd('runtime main.vim')
end
2023-06-16 22:58:38 +02:00
2023-06-28 16:34:24 +02:00
if os.name() == "Windows" then
vim.cmd('runtime windows.vim')
end
2023-03-20 22:53:00 +01:00
EOF