implement host-specific plugins
This commit is contained in:
parent
82b7f6fb3d
commit
5b1d993118
5 changed files with 44 additions and 9 deletions
|
@ -64,8 +64,6 @@ return {
|
|||
"json",
|
||||
"latex",
|
||||
"lua",
|
||||
"luadoc",
|
||||
"luap",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"nix",
|
||||
|
@ -78,7 +76,7 @@ return {
|
|||
"vimdoc",
|
||||
"yaml",
|
||||
"yuck",
|
||||
"zig"
|
||||
"zig",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
39
home/private_dot_config/nvim/lua/plugins/host.lua
Normal file
39
home/private_dot_config/nvim/lua/plugins/host.lua
Normal 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
|
|
@ -1,6 +1,4 @@
|
|||
return {
|
||||
{ "LnL7/vim-nix" },
|
||||
{ "alaviss/nim.nvim" },
|
||||
{ "raivivek/vim-snakemake" },
|
||||
{ "Fymyte/rasi.vim" },
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
autoformat = false,
|
||||
-- autoformat = false,
|
||||
servers = {
|
||||
pylsp = {
|
||||
settings = {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue