Compare commits
2 Commits
d611081d65
...
679201030a
| Author | SHA1 | Date | |
|---|---|---|---|
| 679201030a | |||
| 7e0dee57fa |
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771848320,
|
||||||
|
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
72
flake.nix
Normal file
72
flake.nix
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
description = "Neovim with LSP dev shell";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux"; # change if needed
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
# neovim
|
||||||
|
neovim
|
||||||
|
|
||||||
|
# LSPs
|
||||||
|
lua-language-server
|
||||||
|
vscode-langservers-extracted
|
||||||
|
emmet-ls
|
||||||
|
prettier
|
||||||
|
black
|
||||||
|
nixfmt
|
||||||
|
nil
|
||||||
|
python313Packages.python-lsp-server
|
||||||
|
typescript-language-server
|
||||||
|
tailwindcss-language-server
|
||||||
|
stylua
|
||||||
|
nixd
|
||||||
|
|
||||||
|
# other tools
|
||||||
|
lua5_1
|
||||||
|
tree-sitter
|
||||||
|
ripgrep
|
||||||
|
gcc
|
||||||
|
gnumake
|
||||||
|
imagemagick
|
||||||
|
luajitPackages.magick
|
||||||
|
ghostscript
|
||||||
|
luarocks
|
||||||
|
|
||||||
|
(texlive.combine {
|
||||||
|
inherit (texlive)
|
||||||
|
scheme-basic
|
||||||
|
varwidth
|
||||||
|
preview
|
||||||
|
mathtools
|
||||||
|
amsfonts
|
||||||
|
amscdx
|
||||||
|
xcolor
|
||||||
|
dvisvgm
|
||||||
|
dvipng
|
||||||
|
wrapfig
|
||||||
|
standalone
|
||||||
|
graphicxbox
|
||||||
|
amsmath
|
||||||
|
ulem
|
||||||
|
hyperref
|
||||||
|
capt-of;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
export TREE_SITTER_LIB_PATH="${pkgs.tree-sitter}/lib"
|
||||||
|
echo "Neovim LSP environment loaded"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user