]> git.madduck.net Git - etc/lazyvim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

enable auto import of completions with pyright
authormartin f. krafft <madduck@madduck.net>
Sun, 11 May 2025 16:21:38 +0000 (18:21 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 6 Aug 2025 09:57:17 +0000 (11:57 +0200)
.config/lazyvim/lazy-lock.json
.config/lazyvim/lua/plugins/nvim-lspconfig.lua [new file with mode: 0644]
.gitignore.d/lazyvim

index 7af34d368a94f64b0f5626ed014005b6a7066f0a..0bef73a2a801c41b76318396bab648a0ba73a18e 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "LazyVim": { "branch": "main", "commit": "3f034d0a7f58031123300309f2efd3bb0356ee21" },
+  "LazyVim": { "branch": "main", "commit": "25abbf546d564dc484cf903804661ba12de45507" },
   "blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" },
   "blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" },
   "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
@@ -31,7 +31,7 @@
   "nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
   "nvim-coverage": { "branch": "main", "commit": "a939e425e363319d952a6c35fb3f38b34041ded2" },
   "nvim-lint": { "branch": "master", "commit": "9dfb77ef6c5092a19502883c02dc5a02ec648729" },
-  "nvim-lspconfig": { "branch": "master", "commit": "c671605ad09997c552848048b83bb79af0fb150b" },
+  "nvim-lspconfig": { "branch": "master", "commit": "61e5109c8cf24807e4ae29813a3a82b31821dd45" },
   "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
   "nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
   "nvim-treesitter-textobjects": { "branch": "master", "commit": "0e3be38005e9673d044e994b1e4b123adb040179" },
diff --git a/.config/lazyvim/lua/plugins/nvim-lspconfig.lua b/.config/lazyvim/lua/plugins/nvim-lspconfig.lua
new file mode 100644 (file)
index 0000000..e514ddd
--- /dev/null
@@ -0,0 +1,18 @@
+return {
+  "neovim/nvim-lspconfig",
+  opts = {
+    servers = {
+      pyright = {
+        settings = {
+          python = {
+            analysis = {
+              autoSearchPaths = true,
+              useLibraryCodeForTypes = true,
+              autoImportCompletions = true,
+            },
+          },
+        },
+      },
+    },
+  },
+}
index 7508fb6cef57ace02c39809860859a11bc4dd90a..9a97684d7cc67aa299f903ce4645a63e13088e3b 100644 (file)
@@ -37,6 +37,7 @@
 !/.config/lazyvim/lua/plugins/neotest-hide-output.lua
 !/.config/lazyvim/lua/plugins/noice-doc-popup-styling.lua
 !/.config/lazyvim/lua/plugins/nvim-coverage.lua
+!/.config/lazyvim/lua/plugins/nvim-lspconfig.lua
 !/.config/lazyvim/lua/plugins/vim-table-mode.lua
 !/.config/lazyvim/options.lua
 !/.config/lazyvim/plugins