Tweak term color / improve solidity dev in nvim / update nvim config

This commit is contained in:
2025-04-04 16:17:10 +02:00
parent 73e1bce5fe
commit 8e3ee6a9cc
6 changed files with 19 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
return {
"saecki/crates.nvim",
tag = "stable",
event = { "BufRead Cargo.toml" },
opts = {
lsp = {

View File

@@ -3,10 +3,14 @@ return {
event = { "BufReadPre", "BufNewFile" },
config = function()
local lint = require("lint")
lint.linters_by_ft = {
solidity = {'solhint'},
}
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, {
group = vim.api.nvim_create_augroup("RunLinter", { clear = true }),
callback = function()
lint.try_lint()
lint.try_lint("codespell")
end,
})