Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
icholy committed Feb 24, 2024
1 parent 093ade9 commit 5a43979
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Replace your existing goto-defintion mapping with the following:
``` lua
vim.keymap.set("n", "gd", function()
local lsplinks = require("lsplinks")
lsplinks.jump() or vim.lsp.buf.definition()
if not lsplinks.jump() then
vim.lsp.buf.definition()
end
end)
```

Expand All @@ -35,7 +37,9 @@ end)
lsplinks.setup()
vim.keymap.set("n", "gd", function()
local lsplinks = require("lsplinks")
lsplinks.jump() or vim.lsp.buf.definition()
if not lsplinks.jump() then
vim.lsp.buf.definition()
end
end)
end
}
Expand Down

0 comments on commit 5a43979

Please sign in to comment.