summaryrefslogtreecommitdiff
path: root/home-manager/neovim.nix
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-03-29 22:35:21 +0100
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-03-29 22:36:50 +0100
commit2418424adabca0a1616cca4920221cd67149b65a (patch)
treeb5b237376601cdfbd386ab96be5015fc486147fc /home-manager/neovim.nix
parented0794d5d65c1e15038c308f0a2751a2bcc5cc84 (diff)
Initial commit (Pre-flakes)
Diffstat (limited to 'home-manager/neovim.nix')
-rw-r--r--home-manager/neovim.nix94
1 files changed, 94 insertions, 0 deletions
diff --git a/home-manager/neovim.nix b/home-manager/neovim.nix
new file mode 100644
index 0000000..7b1554e
--- /dev/null
+++ b/home-manager/neovim.nix
@@ -0,0 +1,94 @@
+{ pkgs, config, ...}:
+let
+ unstable = import <nixos-unstable> {};
+ treesitterWithGrammars = (unstable.vimPlugins.nvim-treesitter.withPlugins (p : [
+ p.bash
+ p.comment
+ p.css
+ p.dockerfile
+ p.gitattributes
+ p.gitignore
+ p.go
+ p.gomod
+ p.gowork
+ p.rust
+ p.javascript
+ p.typescript
+ p.json5
+ p.json
+ p.lua
+ p.markdown
+ p.nix
+ p.python
+ p.java
+ p.rust
+ p.toml
+ p.vue
+ p.yaml
+ p.php
+ p.latex
+ ]));
+ treesitter-parsers = pkgs.symlinkJoin {
+ name = "treesitter-parsers";
+ paths = treesitterWithGrammars.dependencies;
+ };
+
+in
+{
+ programs.neovim = {
+ enable = true;
+ # package = unstable.neovim;
+ defaultEditor = true;
+ viAlias = true;
+ vimAlias = true;
+ # vimdiffAlias = true;
+ # # withPython3 = false;
+ # # withNodeJs = false;
+ # # withRuby = false;
+ #
+ coc.enable = false;
+ #
+ plugins = [
+ treesitterWithGrammars
+ ];
+ };
+
+ home.file."./.config/nvim/lua/wilkuu/init.lua".text = ''
+ require("wilkuu.set")
+ require("wilkuu.remap")
+ '';
+ #vim.opt.runtimepath:append("${treesitter-parsers}")
+
+ home.file."./.config/nvim/lua/wilkuu/nix.lua".text = ''
+ return {
+ vue_ts_plugin = "/home/wilkuu/.npm/@vue/typescript-plugin",
+ }
+ '';
+
+
+ # home.file."./.local/share/nvim/nix/nvim-treesitter/" = {
+ # source = treesitterWithGrammars;
+ # recursive = true;
+ # };
+
+ home.sessionPath = [
+ "/home/wilkuu/.npm/bin/"
+ ];
+
+ home.packages = with pkgs; [
+ lua
+ lua-language-server
+ gopls
+ go
+ typescript
+ nodejs_22
+ rustup
+ nixd
+ nixfmt-rfc-style
+ pyright
+ nodePackages.intelephense
+ texlive.combined.scheme-full
+ texlab
+ ];
+
+}