chore(config): nvim config tweaks

Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
2025-03-31 21:04:50 +03:00
parent 97244d5287
commit 0f9a76e36f
5 changed files with 26 additions and 9 deletions

View File

@@ -108,17 +108,25 @@ local lsp_servers = {
-- These are automatically configured by WhoIsSethDaniel/mason-tool-installer.nvim
local mason_tools = {
'actionlint',
'ast-grep',
'black',
'editorconfig-checker',
'goimports',
'golangci-lint',
'golines',
'gopls',
'gotests',
'isort',
'phpcbf',
'phpmd',
'phpstan',
'pint',
'prettierd',
'revive',
'semgrep',
'shellcheck',
'shfmt',
'sonarlint-language-server',
'staticcheck',
'stylua',
'trivy',
@@ -323,7 +331,7 @@ return {
-- Disable autoformat for files in a certain paths
local bufname = vim.api.nvim_buf_get_name(bufnr)
if bufname:match '/node_modules|vendor/' then return end
if bufname:match '/dist|node_modules|vendor/' then return end
return {
timeout_ms = 500,