mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker.db): allow configuring the sqlite3 lib path. Closes #1025
This commit is contained in:
parent
9bccbdb2d9
commit
b9900444d2
2 changed files with 10 additions and 0 deletions
|
@ -20,6 +20,10 @@ ffi.cdef([[
|
|||
]])
|
||||
|
||||
local function sqlite3_lib()
|
||||
local opts = Snacks.picker.config.get()
|
||||
if opts.db.sqlite3_path then
|
||||
return opts.db.sqlite3_path
|
||||
end
|
||||
if jit.os ~= "Windows" then
|
||||
return "sqlite3"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue