Skip to content

Is this a reasonable way to install via lazy? #368

@ahakanbaba

Description

@ahakanbaba

Apologies in advance, I am recently onboarding to neovim and lazy package manager.
Looking at the instructions for installation the steps are simple for lazy.nvim.

I have the following:

In ${XDG_CONFIG_HOME}/nvim/lua/plugins/nvim-tree.lua

return {'nvim-java/nvim-java'}

Then in ${XDG_CONFIG_HOME}/nvim/init.lua

... 
require('java').setup()
require('lspconfig').jdtls.setup({})
...

Because the nvim-tree.lua does NOT set the config or opts to a value, Lazy would not call the require('java').setup(opts) itself. Is that correct ?

I am also asking about the ordering requirements between the require('java').setup() and require('lspconfig').jdtls.setup({}) . I have them both listed flat in the init.lua file. While that works, I am wondering is there a better idiomatic (n)vim or lazy way to describe that dependency ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions