nvim/after/plugin/treesitter.lua

65 lines
1.4 KiB
Lua
Raw Normal View History

2024-04-18 11:10:12 +00:00
local configs = require("nvim-treesitter.configs")
local f = io.popen("uname -s")
if (f ~= nil) then
MY_OS = f:read("*a")
MY_OS = string.gsub(MY_OS, "%s+", "")
f:close()
end
if (MY_OS == 'Linux')
then
configs.setup({
ensure_installed = {
"bash",
"c",
"json",
"julia",
"lua",
"vim",
"vimdoc",
"zig",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
elseif (MY_OS == 'FreeBSD') or (MY_OS == 'OpenBSD')
then
2024-05-02 08:48:40 +00:00
--print('Should be here if on BSD')
2024-04-18 11:10:12 +00:00
configs.setup({
ensure_installed = {
"bash",
"c",
"json",
"vim",
"vimdoc",
"zig",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
elseif (MY_OS == 'Darwin')
then
2024-05-02 08:48:40 +00:00
--print('Should be here if on MacOS')
configs.setup({
ensure_installed = {
"bash",
"c",
"julia",
"json",
"lua",
"ocaml",
"vim",
"vimdoc",
"zig",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
2024-04-18 11:10:12 +00:00
else
print('Should never be here')
end