updated lsp version, added copy to clipboard keybind

This commit is contained in:
2025-05-23 23:34:29 +05:00
parent 97e5f06a61
commit c42731619c
12 changed files with 65 additions and 304 deletions

View File

@ -6,13 +6,20 @@ end
local formatting = null_ls.builtins.formatting
local diagnostics = null_ls.builtins.diagnostics
null_ls.builtins.diagnostics.mypy.with({
extra_args = function()
local virtual = os.getenv("VIRTUAL_ENV") or "/usr"
return { "--python-executable", virtual .. "/bin/python3" }
end,
})
null_ls.setup({
debug = false,
sources = {
formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }),
formatting.black.with({ extra_args = { "--fast" } }),
-- formatting.prettier.with({ extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" } }),
-- formatting.black.with({ extra_args = { "--fast" } }),
formatting.isort,
formatting.stylua,
-- diagnostics.flake8
-- diagnostics.mypy,
},
})