Skip to content

Commit

Permalink
add eslint to nvchad config
Browse files Browse the repository at this point in the history
  • Loading branch information
aminfara committed Mar 31, 2023
1 parent 2c42ee8 commit b9b0c97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions nvchad/configs/null-ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ end
local b = null_ls.builtins

local sources = {

-- webdev stuff
b.formatting.deno_fmt, -- choosed deno for ts/js files cuz its very fast!
b.formatting.prettier.with { filetypes = { "html", "markdown", "css" } }, -- so prettier works only on these filetypes
b.formatting.prettier,
b.diagnostics.eslint_d,
b.code_actions.eslint_d,

-- Lua
b.formatting.stylua,

-- cpp
b.formatting.clang_format,
}

null_ls.setup {
Expand Down
6 changes: 3 additions & 3 deletions nvchad/configs/overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ M.treesitter = {
"html",
"css",
"javascript",
"c",
"typescript",
"markdown",
"markdown_inline",
},
Expand All @@ -29,8 +29,8 @@ M.mason = {
"css-lsp",
"html-lsp",
"typescript-language-server",
"deno",
"prettier"
"eslint_d",
"prettier",
},
}

Expand Down

0 comments on commit b9b0c97

Please sign in to comment.