"opts.silent = true
by default" not working?
#350
-
Line 110 in b8cb553 Not sure why but in my case, if I don't explicitly use Minimal init.lua to reproducevim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
local package_root = "/tmp/nvim/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
vim.g.loaded_remote_plugins = ""
local function load_plugins()
require("packer").startup({
{
"wbthomason/packer.nvim",
{
"mrjones2014/legendary.nvim",
requires = {
{
"nvim-telescope/telescope.nvim",
requires = "nvim-lua/plenary.nvim",
},
"stevearc/dressing.nvim",
},
},
{
"nvim-neo-tree/neo-tree.nvim",
requires = {
"MunifTanjim/nui.nvim",
},
},
},
config = {
package_root = package_root,
compile_path = install_path .. "/plugin/packer_compiled.lua",
display = { non_interactive = true },
},
})
end
_G.load_config = function()
require("telescope").setup()
require("dressing").setup()
require("legendary").setup({
keymaps = {
{
"<leader>n",
":Neotree show toggle <CR>",
-- opts = { silent = true },
description = "NeoTree",
},
},
})
require("neo-tree").setup({})
end
if vim.fn.isdirectory(install_path) == 0 then
print("Installing legendary.nvim and dependencies.")
vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path })
end
load_plugins()
require("packer").sync()
vim.cmd([[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]])
Am I missing something? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
mrjones2014
Apr 8, 2023
Replies: 1 comment 1 reply
-
I don’t think you’re doing anything wrong, I think that bit of my docs is inaccurate, sorry. You can set |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mrjones2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don’t think you’re doing anything wrong, I think that bit of my docs is inaccurate, sorry. You can set
default_opts
for each item type via config.