mirror of
https://github.com/ethersync/ethersync.git
synced 2025-08-02 04:07:29 +03:00
29 lines
639 B
Nix
29 lines
639 B
Nix
# SPDX-FileCopyrightText: 2024 MangoIV <contact@mangoiv.com>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{
|
|
neovim,
|
|
writeShellScriptBin,
|
|
lib,
|
|
ethersync,
|
|
nvim-ethersync,
|
|
...
|
|
}: let
|
|
nvim-custom = neovim.override {
|
|
configure = {
|
|
packages.plugins.start = [nvim-ethersync];
|
|
|
|
# In Nix' standard environment, we can't write to $HOME, so we need to
|
|
# disable swapfiles, and LSP log files.
|
|
customRC = ''
|
|
set noswapfile
|
|
lua vim.lsp.set_log_level("off")
|
|
'';
|
|
};
|
|
};
|
|
in
|
|
writeShellScriptBin "nvim" ''
|
|
PATH=${lib.makeBinPath [ethersync]}:$PATH ${nvim-custom}/bin/nvim $@
|
|
''
|