]> 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:

path completion relative to cwd
authormartin f. krafft <madduck@madduck.net>
Tue, 20 May 2025 16:05:36 +0000 (18:05 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 6 Aug 2025 09:57:17 +0000 (11:57 +0200)
.config/lazyvim/lua/plugins/blink-cmp.lua

index f57bb3e18e093a30055ada812ba096bca4b7ce04..94b520c5565fbe795e4783f37a69b004a8bc12a3 100644 (file)
@@ -2,6 +2,15 @@ return {
   "saghen/blink.cmp",
   opts = {
     sources = {
   "saghen/blink.cmp",
   opts = {
     sources = {
+      providers = {
+        path = {
+          opts = {
+            get_cwd = function(_)
+              return vim.fn.getcwd()
+            end,
+          },
+        },
+      },
     },
     keymap = {
       preset = "default",
     },
     keymap = {
       preset = "default",