summaryrefslogtreecommitdiff
path: root/home-manager/modules/apps/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/modules/apps/nvim')
-rw-r--r--home-manager/modules/apps/nvim/default.nix52
1 files changed, 5 insertions, 47 deletions
diff --git a/home-manager/modules/apps/nvim/default.nix b/home-manager/modules/apps/nvim/default.nix
index 366cdf0..ebba423 100644
--- a/home-manager/modules/apps/nvim/default.nix
+++ b/home-manager/modules/apps/nvim/default.nix
@@ -1,53 +1,18 @@
{ pkgs, config, ...}:
-let
- treesitterWithGrammars = (pkgs.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;
defaultEditor = true;
viAlias = true;
vimAlias = true;
- # vimdiffAlias = true;
- # # withPython3 = false;
- # # withNodeJs = false;
- # # withRuby = false;
- #
+ vimdiffAlias = true;
+ withPython3 = true;
+ withNodeJs = true;
+ withRuby = true;
+
coc.enable = false;
#
plugins = [
- treesitterWithGrammars
];
};
@@ -55,7 +20,6 @@ in
require("wilkuu.set")
require("wilkuu.remap")
'';
- #vim.opt.runtimepath:append("${treesitter-parsers}")
home.file."./.config/nvim/lua/wilkuu/nix.lua".text = ''
return {
@@ -63,12 +27,6 @@ in
}
'';
-
- # home.file."./.local/share/nvim/nix/nvim-treesitter/" = {
- # source = treesitterWithGrammars;
- # recursive = true;
- # };
-
home.sessionPath = [
"/home/wilkuu/.npm/bin/"
];