Replies: 2 comments
-
I don't have an answer, but I wonder if you figured out how to call the setup function? I have the same question! |
Beta Was this translation helpful? Give feedback.
-
Adding and configuring a Neovim/Vim plugin varies depending on which package manager you are using. I use Lazy and just copied the nvim-ide default configuration from the README and wrapped it inside Lazy's plugin initialization and configuration structure (see below). This is Lua so if you are adding this plugin in vimscript you will have to wrap the Lua code something like:
It's hard to give specific instructions without knowing your setup. But maybe looking at my Lazy configuration for this plugin will help. This is the contents of the file return {
{
"ldelossa/nvim-ide",
cmd = "Workspace",
config = function()
local bufferlist = require("ide.components.bufferlist")
local explorer = require("ide.components.explorer")
local outline = require("ide.components.outline")
local callhierarchy = require("ide.components.callhierarchy")
local timeline = require("ide.components.timeline")
local terminal = require("ide.components.terminal")
local terminalbrowser = require("ide.components.terminal.terminalbrowser")
local changes = require("ide.components.changes")
local commits = require("ide.components.commits")
local branches = require("ide.components.branches")
local bookmarks = require("ide.components.bookmarks")
require("ide").setup({
icon_set = "default",
log_level = "info",
components = {
global_keymaps = {},
},
panels = {
left = "explorer",
right = "git",
},
panel_groups = {
explorer = {
outline.Name,
bufferlist.Name,
explorer.Name,
bookmarks.Name,
callhierarchy.Name,
terminalbrowser.Name,
},
terminal = { terminal.Name },
git = { changes.Name, commits.Name, timeline.Name, branches.Name },
},
workspaces = {
auto_open = "left",
},
panel_sizes = {
left = 30,
right = 30,
bottom = 15,
},
})
end,
},
} |
Beta Was this translation helpful? Give feedback.
-
What does it mean to call the setup function in step 2?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions