fix: fixing dockerfile
This commit is contained in:
@@ -12,6 +12,7 @@ return {
|
|||||||
typescriptreact = { "prettier" },
|
typescriptreact = { "prettier" },
|
||||||
svelte = { "prettier" },
|
svelte = { "prettier" },
|
||||||
css = { "prettier" },
|
css = { "prettier" },
|
||||||
|
scss = { "prettier" },
|
||||||
html = { "prettier" },
|
html = { "prettier" },
|
||||||
json = { "prettier" },
|
json = { "prettier" },
|
||||||
yaml = { "prettier" },
|
yaml = { "prettier" },
|
||||||
|
|||||||
@@ -79,16 +79,24 @@ return {
|
|||||||
end
|
end
|
||||||
|
|
||||||
mason_lspconfig.setup_handlers({
|
mason_lspconfig.setup_handlers({
|
||||||
-- default handler for installed servers
|
|
||||||
["eslint"] = function()
|
["eslint"] = function()
|
||||||
lspconfig["eslint"].setup({
|
lspconfig["eslint"].setup({
|
||||||
|
experimental = {
|
||||||
|
useFlatConfig = true,
|
||||||
|
},
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
experimental = { useFlatConfig = true }, -- ✅ Enables Flat Config Support
|
|
||||||
codeActionOnSave = { enable = true },
|
codeActionOnSave = { enable = true },
|
||||||
format = { 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,
|
end,
|
||||||
["svelte"] = function()
|
["svelte"] = function()
|
||||||
|
|||||||
@@ -56,6 +56,13 @@ return {
|
|||||||
|
|
||||||
-- Open file in the current window
|
-- Open file in the current window
|
||||||
vim.keymap.set("n", "o", api.node.open.edit, opts)
|
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
|
-- File Management keybindings
|
||||||
vim.keymap.set("n", "a", function() -- Add a new file
|
vim.keymap.set("n", "a", function() -- Add a new file
|
||||||
vim.cmd("set modifiable") -- Ensure modifiable mode is on
|
vim.cmd("set modifiable") -- Ensure modifiable mode is on
|
||||||
|
|||||||
Reference in New Issue
Block a user