pg.nvim
pg.nvim copied to clipboard
Make GPG optional
I can't use the plugin because I don't have GPG installed. I have no plans on encrypting the connection files as I am only connecting to local databases that are already pretty accessible.
This is the output I get when running :PGConnectBuffer
E5108: Error executing lua .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: /usr/bin/gpg: Executable not found
stack traceback:
.../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: in function 'new'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:6: in function 'load_encrypted_file'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:32: in function 'load_file'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:59: in function 'get_connection_files'
...hare/nvim/site/pack/packer/start/pg.nvim/lua/pg-nvim.lua:57: in function 'ConnectBuffer'
[string ":lua"]:1: in main chunk
stack traceback:
[C]: in function 'error'
.../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: in function 'new'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:6: in function 'load_encrypted_file'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:32: in function 'load_file'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:59: in function 'get_connection_files'
...hare/nvim/site/pack/packer/start/pg.nvim/lua/pg-nvim.lua:57: in function 'ConnectBuffer'
[string ":lua"]:1: in main chunk
E5108: Error executing lua .../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: /usr/bin/gpg: Executable not found
stack traceback:
.../site/pack/packer/start/plenary.nvim/lua/plenary/job.lua:106: in function 'new'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:6: in function 'load_encrypted_file'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:32: in function 'load_file'
...pack/packer/start/pg.nvim/lua///get_connection_files.lua:59: in function 'get_connection_files'
...hare/nvim/site/pack/packer/start/pg.nvim/lua/pg-nvim.lua:57: in function 'ConnectBuffer'
Doesn't even work with gpg-sute
installed on mac
Seems like it's trying to get gpg from /usr/bin
while it's on /usr/local/bin