fix: fixing dockerfile
This commit is contained in:
@@ -12,6 +12,7 @@ return {
|
||||
typescriptreact = { "prettier" },
|
||||
svelte = { "prettier" },
|
||||
css = { "prettier" },
|
||||
scss = { "prettier" },
|
||||
html = { "prettier" },
|
||||
json = { "prettier" },
|
||||
yaml = { "prettier" },
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user