disable linting plugin
This commit is contained in:
parent
6973b7768d
commit
fcb0716210
|
@ -1,51 +1,51 @@
|
|||
return {
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
event = {
|
||||
"BufReadPre",
|
||||
"BufNewFile",
|
||||
},
|
||||
|
||||
config = function()
|
||||
require("mason-tool-installer").setup({
|
||||
ensure_installed = {
|
||||
"prettier", -- prettier formatter
|
||||
-- "stylua", -- lua formatter
|
||||
"isort", -- python formatter
|
||||
"black", -- python formatter
|
||||
"pylint", -- python linter
|
||||
"biome", -- js linter
|
||||
},
|
||||
})
|
||||
local lint = require("lint")
|
||||
lint.linters_by_ft = {
|
||||
javascript = { "eslint_d" },
|
||||
typescript = { "biomejs" },
|
||||
javascriptreact = { "biomejs" },
|
||||
typescriptreact = { "biomejs" },
|
||||
svelte = { "biomejs" },
|
||||
python = { "pylint" },
|
||||
-- markdown = { "marksman" },
|
||||
lua = { "luacheck" },
|
||||
}
|
||||
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
group = lint_augroup,
|
||||
callback = function()
|
||||
lint.try_lint()
|
||||
end,
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<leader>l", function()
|
||||
lint.try_lint()
|
||||
end, { desc = "Trigger linting for current file" })
|
||||
vim.keymap.set("n", "<leader>L", function()
|
||||
vim.diagnostic.open_float()
|
||||
end, { desc = "Open diagnostic in pop-up" })
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "mfussenegger/nvim-lint",
|
||||
-- event = {
|
||||
-- "BufReadPre",
|
||||
-- "BufNewFile",
|
||||
-- },
|
||||
--
|
||||
-- config = function()
|
||||
-- require("mason-tool-installer").setup({
|
||||
-- ensure_installed = {
|
||||
-- "prettier", -- prettier formatter
|
||||
-- -- "stylua", -- lua formatter
|
||||
-- "isort", -- python formatter
|
||||
-- "black", -- python formatter
|
||||
-- "pylint", -- python linter
|
||||
-- "biome", -- js linter
|
||||
-- },
|
||||
-- })
|
||||
-- local lint = require("lint")
|
||||
-- lint.linters_by_ft = {
|
||||
-- --javascript = { "eslint_d" },
|
||||
-- typescript = { "biomejs" },
|
||||
-- javascriptreact = { "biomejs" },
|
||||
-- typescriptreact = { "biomejs" },
|
||||
-- svelte = { "biomejs" },
|
||||
-- python = { "pylint" },
|
||||
-- -- markdown = { "marksman" },
|
||||
-- lua = { "luacheck" },
|
||||
-- }
|
||||
--
|
||||
-- local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
-- group = lint_augroup,
|
||||
-- callback = function()
|
||||
-- lint.try_lint()
|
||||
-- end,
|
||||
-- })
|
||||
--
|
||||
-- vim.keymap.set("n", "<leader>l", function()
|
||||
-- lint.try_lint()
|
||||
-- end, { desc = "Trigger linting for current file" })
|
||||
-- vim.keymap.set("n", "<leader>L", function()
|
||||
-- vim.diagnostic.open_float()
|
||||
-- end, { desc = "Open diagnostic in pop-up" })
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
"WhoIsSethDaniel/toggle-lsp-diagnostics.nvim",
|
||||
config = function()
|
||||
|
|
Loading…
Reference in New Issue