From 41f125d4ca4f2cefb93ca365b9ba3beb708e8f85 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Sat, 3 Jul 2021 13:59:02 +0700 Subject: [PATCH] add eslint --- users/rin/neovim.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/rin/neovim.nix b/users/rin/neovim.nix index 982264d..3319776 100644 --- a/users/rin/neovim.nix +++ b/users/rin/neovim.nix @@ -80,10 +80,14 @@ in { " disable empty line tildes set fcs=eob:\ - let g:coc_global_extensions = ['coc-tsserver', 'coc-rust-analyzer', 'coc-flutter'] + let g:coc_global_extensions = ['coc-eslint', 'coc-tsserver', 'coc-rust-analyzer', 'coc-flutter'] ''; }; xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON { + "eslint.enable" = true; + "eslint.options" = { + configFile = "./.eslintrc.json"; + }; "rust-analyzer.lens.enable" = false; "rust-analyzer.inlayHints.enable" = false; "rust-analyzer.serverPath" = pkgs.rust-analyzer + "/bin/rust-analyzer";