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", "json",
"latex", "latex",
"lua", "lua",
"luadoc",
"luap",
"markdown", "markdown",
"markdown_inline", "markdown_inline",
"nix", "nix",
@ -78,7 +76,7 @@ return {
"vimdoc", "vimdoc",
"yaml", "yaml",
"yuck", "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 { return {
{ "LnL7/vim-nix" },
{ "alaviss/nim.nvim" }, { "alaviss/nim.nvim" },
{ "raivivek/vim-snakemake" }, { "raivivek/vim-snakemake" },
{ "Fymyte/rasi.vim" },
} }

View file

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

View file

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