@@ -29,8 +29,7 @@ return {
|
|||||||
mason_null_ls.setup({
|
mason_null_ls.setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"stylua",
|
"stylua",
|
||||||
"clang-format",
|
"eslint",
|
||||||
"eslint_d",
|
|
||||||
},
|
},
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -12,10 +12,9 @@ return {
|
|||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
sources = {
|
sources = {
|
||||||
formatting.stylua,
|
formatting.stylua,
|
||||||
formatting.clang_format,
|
diagnostics.eslint.with({
|
||||||
diagnostics.eslint_d.with({
|
|
||||||
condition = function(utils)
|
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,
|
end,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
@@ -30,6 +29,8 @@ return {
|
|||||||
vim.lsp.buf.format({ async = false })
|
vim.lsp.buf.format({ async = false })
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
else
|
||||||
|
vim.notify("Formatting not supported")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ return {
|
|||||||
enabled = false,
|
enabled = false,
|
||||||
leave_dirs_open = false,
|
leave_dirs_open = false,
|
||||||
},
|
},
|
||||||
group_empty_dirs = true,
|
group_empty_dirs = false,
|
||||||
hijack_netrw_behavior = "open_current",
|
hijack_netrw_behavior = "open_current",
|
||||||
use_libuv_file_watcher = false,
|
use_libuv_file_watcher = false,
|
||||||
window = {
|
window = {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ return {
|
|||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
|
|
||||||
local command = { "fd", "-I", "-H", "--type", "file" }
|
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
|
for i, v in ipairs(ignored) do
|
||||||
table.insert(command, "--exclude")
|
table.insert(command, "--exclude")
|
||||||
@@ -40,10 +40,10 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
fzf = {
|
fzf = {
|
||||||
fuzzy = true, -- false will only do exact matching
|
fuzzy = true, -- false will only do exact matching
|
||||||
override_generic_sorter = true, -- override the generic sorter
|
override_generic_sorter = true, -- override the generic sorter
|
||||||
override_file_sorter = true, -- override the file sorter
|
override_file_sorter = true, -- override the file sorter
|
||||||
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
|
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user