From 389082580b4bef4c38320b7df1b1a967f46916e5 Mon Sep 17 00:00:00 2001 From: Youtube Date: Sun, 23 Oct 2022 01:46:27 -0400 Subject: [PATCH 1/3] Added comment to new eslint config --- .config/nvim/lua/josean/plugins/lsp/null-ls.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/josean/plugins/lsp/null-ls.lua b/.config/nvim/lua/josean/plugins/lsp/null-ls.lua index ba24920..f9ce475 100644 --- a/.config/nvim/lua/josean/plugins/lsp/null-ls.lua +++ b/.config/nvim/lua/josean/plugins/lsp/null-ls.lua @@ -22,7 +22,7 @@ null_ls.setup({ diagnostics.eslint_d.with({ -- js/ts linter -- only enable eslint if root has .eslintrc.js (not in youtube nvim video) condition = function(utils) - return utils.root_has_file(".eslintrc.js") + return utils.root_has_file(".eslintrc.js") -- change file name if you use something else end, }), }, From 0da810e4c1201ad8ce64a7610344421a9af97187 Mon Sep 17 00:00:00 2001 From: Youtube Date: Sun, 23 Oct 2022 01:48:55 -0400 Subject: [PATCH 2/3] Modified eslint comment to specifying changing file extension --- .config/nvim/lua/josean/plugins/lsp/null-ls.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/josean/plugins/lsp/null-ls.lua b/.config/nvim/lua/josean/plugins/lsp/null-ls.lua index f9ce475..a80fc69 100644 --- a/.config/nvim/lua/josean/plugins/lsp/null-ls.lua +++ b/.config/nvim/lua/josean/plugins/lsp/null-ls.lua @@ -22,7 +22,7 @@ null_ls.setup({ diagnostics.eslint_d.with({ -- js/ts linter -- only enable eslint if root has .eslintrc.js (not in youtube nvim video) condition = function(utils) - return utils.root_has_file(".eslintrc.js") -- change file name if you use something else + return utils.root_has_file(".eslintrc.js") -- change file extension if you use something else end, }), }, From 5938597b8aa0ef91bbbf56fdd23c2425578f4c1e Mon Sep 17 00:00:00 2001 From: Josean Martinez <114825290+josean-dev@users.noreply.github.com> Date: Sun, 23 Oct 2022 01:55:15 -0400 Subject: [PATCH 3/3] Update readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4dd16c7..b1b6025 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ - [Neovim](https://neovim.io/) (Version 0.8 or Later) - [Nerd Font](https://www.nerdfonts.com/) - I use Meslo Nerd Font - [Ripgrep](https://github.com/BurntSushi/ripgrep) - For Telescope Fuzzy Finder +- If working with typescript/javascript and the typescript language server like me. You might need to install node. If you're on mac, like me, you can install iTerm2, Neovim and Ripgrep with homebrew. ```bash