replace basedpyright instead by pyrefly and checking syntax by pyright

This commit is contained in:
huyjaky
2025-11-05 18:09:01 +07:00
parent 1f7fda6f21
commit 70f0c7fe5d
8 changed files with 168 additions and 71 deletions

View File

@@ -1,4 +1,3 @@
-- Some commands that I want to execute in specific timing
vim.api.nvim_create_augroup("disable_comment_newline", { clear = true })
vim.api.nvim_create_augroup("auto_wrap", { clear = true })
@@ -35,3 +34,37 @@ vim.api.nvim_create_autocmd("BufWinEnter", {
pattern = "*",
command = "let @/ = ''",
})
-- vim.lsp.config("pyrefly", {
-- -- example of how to run `uv` installed Pyrefly without adding to your path
-- cmd = { "uvx", "pyrefly", "-c", "~/.config/nvim/pyrefly_config.yaml", "lsp" },
-- capabilities = {
-- textDocument = {
-- completion = {
-- completionItem = {
-- snippetSupport = false,
-- preselectSupport = false,
-- },
-- },
-- },
-- },
-- })
vim.lsp.enable "pyrefly"
vim.lsp.config("pyrefly", {
cmd = {
"uvx",
"pyrefly",
"lsp",
},
capabilities = {
textDocument = {
completion = {
completionItem = {
snippetSupport = false,
preselectSupport = false,
},
},
},
},
})