Compare commits

..

4 Commits

Author SHA1 Message Date
Andrzej Stepien 7877803986 undo 2024-03-13 16:04:04 +01:00
Andrzej Stepien 11bcfa4a45 isntall gitsigns 2024-03-13 16:03:28 +01:00
Andrzej Stepien ca668494cb give up on trying to get eslint to work 2024-03-13 16:03:21 +01:00
Andrzej Stepien 629551c65f give up on trying to get eslint to work 2024-03-13 16:02:58 +01:00
14 changed files with 6 additions and 61 deletions

View File

@ -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" },
-- },
-- },
-- },
-- })

6
lua/plugins/gitsigns.lua Normal file
View File

@ -0,0 +1,6 @@
return {
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup()
end,
}

View File

@ -27,20 +27,6 @@ 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 })

View File

@ -9,5 +9,4 @@ return {
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
}, },
} }