Browse Source

nixpkgs/neovim: use treesitter for indentation

Thomas Dy 2 months ago
parent
commit
66e4010624

+ 3 - 0
.config/nixpkgs/neovim/plugins.lua

@@ -206,6 +206,9 @@ require('nvim-treesitter.configs').setup({
   highlight = {
     enable = true,
   },
+  indent = {
+    enable = true,
+  },
   incremental_selection = {
     enable = true,
     keymaps = {

+ 0 - 7
.config/nixpkgs/neovim/plugins/default.nix

@@ -3,13 +3,6 @@ let
   plugins = builtins.fromJSON (builtins.readFile ./sources.json);
 
   overrides = {
-    "leafgarland/typescript-vim" = {
-      patches = [
-        # make compiler build entire project
-        ./typescript-vim-compiler.patch
-      ];
-    };
-
     "nvim-telescope/telescope-fzf-native.nvim" = {
       dontBuild = false;
     };

+ 0 - 4
.config/nixpkgs/neovim/plugins/sources.json

@@ -63,10 +63,6 @@
     "rev": "1e8d3cc4d74f40fb384cd1739739543fe117ff61",
     "sha256": "06sdplgw76xnpdb89yd4arpphsn24nn327mhp3siyvc5qlsddby7"
   },
-  "leafgarland/typescript-vim": {
-    "rev": "eafdcf5e9ee73b43d92372d69dd84458bf98c5e3",
-    "sha256": "1ybc0ppr6xqx5ahg56xfcrs2v0h9dnsblqmgvx5xbz41lirh51h0"
-  },
   "rest-nvim/rest.nvim": {
     "rev": "84e81a19ab24ccf05c9233d34d4dfce61c233abe",
     "sha256": "1z6wkszd84xnqfhb1s59rggcipl9dmyxw21yrksg1q7hhcgq1abb"

+ 0 - 13
.config/nixpkgs/neovim/plugins/typescript-vim-compiler.patch

@@ -1,13 +0,0 @@
-diff --git a/compiler/typescript.vim b/compiler/typescript.vim
-index 77121eb..203af9b 100644
---- a/compiler/typescript.vim
-+++ b/compiler/typescript.vim
-@@ -22,7 +22,7 @@ execute 'CompilerSet makeprg='
-       \ . escape(g:typescript_compiler_binary, ' ')
-       \ . '\ '
-       \ . escape(g:typescript_compiler_options, ' ')
--      \ . '\ $*\ %'
-+      \ . '\ $*'
- 
- CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m
-