irongit

My nvim configuration

feat: disable errors in pyright

huncholanehuncholaneauthored
parent 3ef1e2dcommit 59e001e5478347d67503a4704b4261f502c21b58Browse files

3 files changed, +55 -1

+1-1lsp/basedpyright.lua
@@ -37,7 +37,7 @@ return {
3737 settings = {
3838 basedpyright = {
3939 analysis = {
40- typeCheckingMode = "basic",
40+ typeCheckingMode = "off",
4141 autoSearchPaths = true,
4242 useLibraryCodeForTypes = true,
4343 },
+19-0lsp/jedi.lua.off
@@ -0,0 +1,19 @@
1+---@brief
2+---
3+--- https://github.com/pappasam/jedi-language-server
4+---
5+--- `jedi-language-server`, a language server for Python, built on top of jedi
6+
7+---@type vim.lsp.Config
8+return {
9+ cmd = { "jedi-language-server" },
10+ filetypes = { "python" },
11+ root_markers = {
12+ "pyproject.toml",
13+ "setup.py",
14+ "setup.cfg",
15+ "requirements.txt",
16+ "Pipfile",
17+ ".git",
18+ },
19+}
+35-0lsp/ruff.lua
@@ -0,0 +1,35 @@
1+---@brief
2+---
3+--- https://github.com/astral-sh/ruff
4+---
5+--- A Language Server Protocol implementation for Ruff, an extremely fast Python linter and code formatter, written in Rust. It can be installed via `pip`.
6+---
7+--- ```sh
8+--- pip install ruff
9+--- ```
10+---
11+--- **Available in Ruff `v0.4.5` in beta and stabilized in Ruff `v0.5.3`.**
12+---
13+--- This is the new built-in language server written in Rust. It supports the same feature set as `ruff-lsp`, but with superior performance and no installation required. Note that the `ruff-lsp` server will continue to be maintained until further notice.
14+---
15+--- Server settings can be provided via:
16+---
17+--- ```lua
18+--- vim.lsp.config('ruff', {
19+--- init_options = {
20+--- settings = {
21+--- -- Server settings should go here
22+--- }
23+--- }
24+--- })
25+--- ```
26+---
27+--- Refer to the [documentation](https://docs.astral.sh/ruff/editors/) for more details.
28+
29+---@type vim.lsp.Config
30+return {
31+ cmd = { 'ruff', 'server' },
32+ filetypes = { 'python' },
33+ root_markers = { 'pyproject.toml', 'ruff.toml', '.ruff.toml', '.git' },
34+ settings = {},
35+}