|
@@ -11,20 +11,9 @@ nvim_lsp.bashls.setup({
|
|
|
capabilities = capabilities,
|
|
|
});
|
|
|
|
|
|
-if vim.fn.executable("node_modules/.bin/eslint") == 1 then
|
|
|
- local options = {}
|
|
|
- -- some projects have local rules, this isn't exactly generic but is good
|
|
|
- -- enough
|
|
|
- if vim.fn.isdirectory("lint-rules") == 1 then
|
|
|
- options.rulePaths = { "./lint-rules" }
|
|
|
- end
|
|
|
-
|
|
|
- nvim_lsp.eslint.setup({
|
|
|
- settings = {
|
|
|
- options = options,
|
|
|
- },
|
|
|
- })
|
|
|
-end
|
|
|
+nvim_lsp.eslint.setup({
|
|
|
+ capabilities = capabilities,
|
|
|
+});
|
|
|
|
|
|
if vim.fn.executable("dprint") == 1 then
|
|
|
local version = vim.version.parse(vim.fn.system("dprint --version"))
|