Updated config

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-19 21:34:15 +01:00
parent 76ad2385e9
commit 8daffdbbdf
4 changed files with 10 additions and 10 deletions

View File

@@ -29,8 +29,7 @@ return {
mason_null_ls.setup({
ensure_installed = {
"stylua",
"clang-format",
"eslint_d",
"eslint",
},
automatic_installation = true,
})

View File

@@ -12,10 +12,9 @@ return {
null_ls.setup({
sources = {
formatting.stylua,
formatting.clang_format,
diagnostics.eslint_d.with({
diagnostics.eslint.with({
condition = function(utils)
return utils.root_has_file({ ".eslintrc.js", ".eslintrc.cjs" }) -- only enable if root has .eslintrc.js or .eslintrc.cjs
return utils.root_has_file({ ".eslintrc.js" })
end,
}),
},
@@ -30,6 +29,8 @@ return {
vim.lsp.buf.format({ async = false })
end,
})
else
vim.notify("Formatting not supported")
end
end,
})

View File

@@ -87,7 +87,7 @@ return {
enabled = false,
leave_dirs_open = false,
},
group_empty_dirs = true,
group_empty_dirs = false,
hijack_netrw_behavior = "open_current",
use_libuv_file_watcher = false,
window = {

View File

@@ -11,7 +11,7 @@ return {
local telescope = require("telescope")
local command = { "fd", "-I", "-H", "--type", "file" }
local ignored = { "node_modules", ".git" }
local ignored = { "node_modules", ".git", "dist" }
for i, v in ipairs(ignored) do
table.insert(command, "--exclude")