mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
fix(nvim): timeout issues with null-ls
This commit is contained in:
@@ -83,6 +83,7 @@ end
|
||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Formatting-on-save
|
||||
local lsp_formatting = function(bufnr)
|
||||
vim.lsp.buf.format({
|
||||
timeout_ms = 2000,
|
||||
bufnr = bufnr,
|
||||
filter = function(client)
|
||||
return client.name == "null-ls"
|
||||
|
||||
@@ -21,24 +21,21 @@ null_ls.setup({
|
||||
code_actions.gitsigns,
|
||||
code_actions.proselint,
|
||||
completion.luasnip,
|
||||
diagnostics.eslint, -- Eslint
|
||||
-- diagnostics.eslint_d, -- Eslint
|
||||
diagnostics.eslint_d,
|
||||
diagnostics.flake8, -- Python
|
||||
diagnostics.gitlint,
|
||||
diagnostics.markdownlint.with({ extra_args = { "--rules ~MD033" } }),
|
||||
diagnostics.stylelint,
|
||||
diagnostics.tsc,
|
||||
diagnostics.vale,
|
||||
-- diagnostics.yamllint,
|
||||
diagnostics.zsh,
|
||||
formatting.autopep8, -- Python
|
||||
formatting.black.with({ extra_args = { "--fast" } }), -- Python
|
||||
formatting.eslint_d,
|
||||
formatting.markdownlint,
|
||||
formatting.prettierd,
|
||||
-- formatting.prettier.with({ extra_args = { "--single-quote" } }),
|
||||
formatting.stylelint,
|
||||
formatting.stylua, -- Lua
|
||||
formatting.stylua,
|
||||
formatting.trim_newlines,
|
||||
formatting.trim_whitespace,
|
||||
formatting.rustfmt,
|
||||
|
||||
Reference in New Issue
Block a user