fix: fixing dockerfile

This commit is contained in:
Carlos
2025-02-04 20:36:41 -05:00
parent 687b3c4aa0
commit bc972ba2d2
3 changed files with 19 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ return {
typescriptreact = { "prettier" },
svelte = { "prettier" },
css = { "prettier" },
scss = { "prettier" },
html = { "prettier" },
json = { "prettier" },
yaml = { "prettier" },

View File

@@ -79,16 +79,24 @@ return {
end
mason_lspconfig.setup_handlers({
-- default handler for installed servers
["eslint"] = function()
lspconfig["eslint"].setup({
experimental = {
useFlatConfig = true,
},
capabilities = capabilities,
settings = {
experimental = { useFlatConfig = true }, -- ✅ Enables Flat Config Support
codeActionOnSave = { enable = true },
format = { enable = true },
},
root_dir = lspconfig.util.root_pattern("eslint.config.js", "package.json"),
root_dir = lspconfig.util.root_pattern(
"eslint.config.js",
".eslintrc.js",
".eslintrc.json",
".eslintrc.yaml",
".eslintrc.yml",
"package.json"
),
})
end,
["svelte"] = function()

View File

@@ -56,6 +56,13 @@ return {
-- Open file in the current window
vim.keymap.set("n", "o", api.node.open.edit, opts)
-- Navigate Up (Back One Folder Level)
vim.keymap.set("n", "u", api.tree.change_root_to_parent, opts)
-- Navigate Forward (Enter a Folder)
vim.keymap.set("n", "<leader>f", api.tree.change_root_to_node, opts)
-- File Management keybindings
vim.keymap.set("n", "a", function() -- Add a new file
vim.cmd("set modifiable") -- Ensure modifiable mode is on