Compare commits

..

2 Commits

Author SHA1 Message Date
Andrzej Stepien c779823152 change js linter to use lsp 2024-03-17 17:46:08 +01:00
Andrzej Stepien d43fe76288 change keymap for next diagnostic 2024-03-17 17:45:27 +01:00
2 changed files with 5 additions and 5 deletions

View File

@ -55,9 +55,9 @@ vim.api.nvim_create_autocmd("LspAttach", {
bufmap("n", "gl", "<cmd>lua vim.diagnostic.open_float()<cr>") bufmap("n", "gl", "<cmd>lua vim.diagnostic.open_float()<cr>")
-- Move to the previous diagnostic -- Move to the previous diagnostic
bufmap("n", "[d", "<cmd>lua vim.diagnostic.goto_prev()<cr>") bufmap("n", "nd", "<cmd>lua vim.diagnostic.goto_prev()<cr>")
-- Move to the next diagnostic -- Move to the next diagnostic
bufmap("n", "]d", "<cmd>lua vim.diagnostic.goto_next()<cr>") bufmap("n", "nd", "<cmd>lua vim.diagnostic.goto_next()<cr>")
end, end,
}) })

View File

@ -19,14 +19,14 @@ return {
}) })
local lint = require("lint") local lint = require("lint")
lint.linters_by_ft = { lint.linters_by_ft = {
javascript = { "biomejs" }, javascript = { "eslint_d" },
typescript = { "biomejs" }, typescript = { "biomejs" },
javascriptreact = { "biomejs" }, javascriptreact = { "biomejs" },
typescriptreact = { "biomejs" }, typescriptreact = { "biomejs" },
svelte = { "biomejs" }, svelte = { "biomejs" },
python = { "pylint" }, python = { "pylint" },
-- markdown = { "marksman" }, -- markdown = { "marksman" },
lua = {"luacheck"}, lua = { "luacheck" },
} }
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true }) local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })