replace basedpyright instead by pyrefly and checking syntax by pyright
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user