give up on trying to get eslint to work
This commit is contained in:
parent
4f0ea77e68
commit
629551c65f
|
@ -21,21 +21,6 @@ require("mason-lspconfig").setup({
|
||||||
ensure_installed = {},
|
ensure_installed = {},
|
||||||
handlers = {
|
handlers = {
|
||||||
default_setup,
|
default_setup,
|
||||||
-- lua_ls = function()
|
|
||||||
-- require("lspconfig").eslint.setup({
|
|
||||||
-- capabilities = lsp_capabilities,
|
|
||||||
-- args = {
|
|
||||||
-- "--no-warn-ignored", -- <-- this is the key argument
|
|
||||||
-- "--format",
|
|
||||||
-- "json",
|
|
||||||
-- "--stdin",
|
|
||||||
-- "--stdin-filename",
|
|
||||||
-- function()
|
|
||||||
-- return vim.api.nvim_buf_get_name(0)
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
-- })
|
|
||||||
-- end,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -58,34 +43,3 @@ cmp.setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- local lsps_for_install = { --[[ "eslint", ]]
|
|
||||||
-- "html",
|
|
||||||
-- "cssls",
|
|
||||||
-- "bashls",
|
|
||||||
-- "grammarly",
|
|
||||||
-- }
|
|
||||||
-- --make this table 2d to add configs
|
|
||||||
-- local mason_lspconfig = require("mason-lspconfig")
|
|
||||||
-- mason_lspconfig.setup({
|
|
||||||
-- ensure_installed = lsps_for_install,
|
|
||||||
-- })
|
|
||||||
--
|
|
||||||
-- local lspconfig = require("lspconfig")
|
|
||||||
-- local lsp_capabilities = require("cmp_nvim_lsp").default_capabilities()
|
|
||||||
-- for _, lsp in pairs(lsps_for_install) do
|
|
||||||
-- lspconfig[lsp].setup({
|
|
||||||
-- capabilities = lsp_capabilities,
|
|
||||||
-- })
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- lspconfig.lua_ls.setup({
|
|
||||||
-- capabilities = lsp_capabilities,
|
|
||||||
-- settings = {
|
|
||||||
-- Lua = {
|
|
||||||
-- diagnostics = {
|
|
||||||
-- globals = { "vim" },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- })
|
|
||||||
|
|
|
@ -9,5 +9,4 @@ return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue