implement host-specific plugins

This commit is contained in:
Daylin Morgan 2023-10-30 17:58:33 -05:00
parent 82b7f6fb3d
commit 5b1d993118
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
5 changed files with 44 additions and 9 deletions

View file

@ -64,8 +64,6 @@ return {
"json",
"latex",
"lua",
"luadoc",
"luap",
"markdown",
"markdown_inline",
"nix",
@ -78,7 +76,7 @@ return {
"vimdoc",
"yaml",
"yuck",
"zig"
"zig",
},
},
},

View file

@ -0,0 +1,39 @@
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()
if vim.list_contains(vim.tbl_keys(single_host_plugins), hostname) then
vim.list_extend(plugins, single_host_plugins[hostname])
end
end
if vim.list_contains({ "othalan", "algiz" }, hostname) then
vim.list_extend(plugins, {
{ "lambdalisue/suda.vim" },
})
end
add_single_host_plugins()
return plugins

View file

@ -1,6 +1,4 @@
return {
{ "LnL7/vim-nix" },
{ "alaviss/nim.nvim" },
{ "raivivek/vim-snakemake" },
{ "Fymyte/rasi.vim" },
}

View file

@ -1,7 +1,7 @@
return {
"neovim/nvim-lspconfig",
opts = {
autoformat = false,
-- autoformat = false,
servers = {
pylsp = {
settings = {

View file

@ -1,7 +1,7 @@
return {
{
"nvimdev/dashboard-nvim",
opts = function (_, opts)
opts = function(_, opts)
local logo = [[
@ -34,9 +34,9 @@ return {
-- return colors[math.random(#colors)]
-- end
--
opts.config.header = vim.split(logo,"\n")
opts.config.header = vim.split(logo, "\n")
return opts
end
end,
},
{
"folke/edgy.nvim",