dotfiles/home/private_dot_config/nvim/lua/plugins/host.lua

40 lines
871 B
Lua
Raw Normal View History

2023-10-30 17:58:33 -05:00
local hostname = vim.fn.hostname()
local plugins = {}
local single_host_plugins = {
othalan = {
-- https://github.com/nvim-treesitter/nvim-treesitter/pull/5437
-- { "aMOPel/nvim-treesitter-nim" }
{ "kaarmu/typst.vim" },
{
"mickael-menu/zk-nvim",
config = function()
require("zk").setup({
-- See Setup section below
})
end,
},
{ "Fymyte/rasi.vim" },
{ dir = "~/dev/github/usu-dev/usu-vim/" },
},
algiz = {
{ "LnL7/vim-nix" },
},
}
local function add_single_host_plugins()
2023-10-31 00:55:32 -05:00
if vim.tbl_contains(vim.tbl_keys(single_host_plugins), hostname) then
2023-10-30 17:58:33 -05:00
vim.list_extend(plugins, single_host_plugins[hostname])
end
end
2023-10-31 00:55:32 -05:00
if vim.tbl_contains({ "othalan", "algiz" }, "algiz") then
2023-10-30 17:58:33 -05:00
vim.list_extend(plugins, {
{ "lambdalisue/suda.vim" },
})
end
add_single_host_plugins()
return plugins