move building to default
This commit is contained in:
parent
c0e15868ee
commit
3fcc13077d
2 changed files with 40 additions and 38 deletions
39
default.nix
Normal file
39
default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ wrapNeovim, neovim-unwrapped, vimPlugins, ... }:
|
||||
|
||||
wrapNeovim neovim-unwrapped {
|
||||
withPython3 = false;
|
||||
withNodeJs = false;
|
||||
withRuby = false;
|
||||
|
||||
configure = {
|
||||
customRC = ''
|
||||
lua << EOF
|
||||
require("nvim-treesitter.configs").setup({
|
||||
-- A list of parser names, or "all"
|
||||
ensure_installed = {},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
EOF
|
||||
'';
|
||||
|
||||
packages.myVimPackages =
|
||||
{
|
||||
start = with vimPlugins; [
|
||||
(nvim-treesitter.withPlugins
|
||||
(ts: [
|
||||
ts.tree-sitter-nix
|
||||
]))
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
39
flake.nix
39
flake.nix
|
@ -9,44 +9,7 @@
|
|||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
neovim = pkgs.wrapNeovim pkgs.neovim-unwrapped
|
||||
{
|
||||
withPython3 = false;
|
||||
withNodeJs = false;
|
||||
withRuby = false;
|
||||
|
||||
configure = {
|
||||
customRC = ''
|
||||
lua << EOF
|
||||
require("nvim-treesitter.configs").setup({
|
||||
-- A list of parser names, or "all"
|
||||
ensure_installed = {},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
EOF
|
||||
'';
|
||||
|
||||
packages.myVimPackages =
|
||||
{
|
||||
start = with pkgs.vimPlugins; [
|
||||
(nvim-treesitter.withPlugins
|
||||
(ts: [
|
||||
ts.tree-sitter-nix
|
||||
]))
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
neovim = pkgs.callPackage ./. { };
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
|
|
Reference in a new issue