Skip to content

Commit

Permalink
feat: nvim editor docs (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
emsoraffa authored Jan 30, 2025
1 parent c457f8e commit 77dfead
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions docs/editors/vim.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,58 @@
# Vim setup

This guide hasn't been written yet. Maybe you want to? :-)

# Neovim setup

Depending on you package manager and general setup this may differ. Just ensure pyright and ruff and vstls is installed via mason or your package manager of choice.

You might have to add the following to the pyproject.toml file:

```
[tool.pyright]
include = ["samfundet"]
exclude = [
"**/**pycache**",
"**/migrations",
".venv",
"venv",
"node_modules",
"dist",
"build",
"database",
"logs",
"diagrams",
]
typeCheckingMode = "off" # Change to "strict" if you want stricter checks
venvPath = "."
venv = ".venv"
stubPath = "stubs"
reportImplicitOverride = "none"
reportGeneralTypeIssues = "none"
useLibraryCodeForTypes = true
reportMissingImports = false
reportOptionalSubscript = false
reportOptionalCall = false
[tool.pyright.strict]
"samfundet/management/commands/_" = true
"samfundet/api/_" = true
"samfundet/core/\*" = true
[tool.pyright.report]
reportUnnecessaryTypeIgnoreComment = "none"
reportUnnecessaryCast = "none"
reportUnnecessaryIsInstance = "none"
reportUnusedImport = "warning"
reportUnusedVariable = "warning"
reportUntypedFunctionDecorator = "none"
reportCallInDefaultInitializer = "none"
```

0 comments on commit 77dfead

Please sign in to comment.