Compare commits
No commits in common. "78778039861eabe22974acf56e66c621245be6e1" and "4f0ea77e680b2e5eb95405a5bf9832c80e7cdc1d" have entirely different histories.
7877803986
...
4f0ea77e68
|
@ -21,6 +21,21 @@ 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,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -43,3 +58,34 @@ 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" },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- })
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
return {
|
|
||||||
"lewis6991/gitsigns.nvim",
|
|
||||||
config = function()
|
|
||||||
require("gitsigns").setup()
|
|
||||||
end,
|
|
||||||
}
|
|
|
@ -27,6 +27,20 @@ return {
|
||||||
python = { "pylint" },
|
python = { "pylint" },
|
||||||
markdown = { "proselint" },
|
markdown = { "proselint" },
|
||||||
}
|
}
|
||||||
|
--###### ESLINT HACK ######
|
||||||
|
local eslint = lint.linters.eslint_d
|
||||||
|
|
||||||
|
eslint.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 ESLINT HACK ######
|
||||||
|
|
||||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||||
|
|
||||||
|
|
|
@ -9,4 +9,5 @@ return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue