Browse Source

nixpkgs/neovim: use treesitter for indentation

Thomas Dy 2 months ago
parent
commit
dac86cf1e7

+ 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 - 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
-