haringsrob / laravel-dev-tools

Developer tools for easier Laravel development (Blade lsp)
Apache License 2.0
92 stars 5 forks source link

How to install for Neovim??? #9

Closed MannyFay closed 1 year ago

MannyFay commented 1 year ago

Hi,

you write 'download the compiled version from releases`. Which of them exactly:

Screenshot 2023-06-20 at 23 13 43

Where I have to place it / what I have to do with it?

What is with the 'path to the executable'? The place where the compile file lives???

  default_config = {
    -- Path to the executable: laravel-dev-generators
    cmd = { "laravel-dev-generators", "lsp" },
james2doyle commented 1 year ago

I have this working in Sublime Text with the following setup:

git clone git@github.com:haringsrob/laravel-dev-tools.git
cp laravel-dev-tools /usr/local/bin/laravel-dev-tools

Then I used the command laravel-dev-tools lsp instead of laravel-dev-generators lsp

haringsrob commented 1 year ago

Please use a clone of the project and not the outdated release.

haringsrob commented 1 year ago

Here is an example:

-- Configure it
configs.blade = {
    default_config = {
        cmd = { "/Users/rob/.config/lsps/laravel-dev-generators/laravel-dev-tools", "lsp" },
        filetypes = { 'blade' },
        root_dir = function(_)
            return vim.loop.cwd()
        end,
        settings = {},
    },
}
-- Set it up
lspconfig.blade.setup {
    capabilities = capabilities
}
MannyFay commented 1 year ago

@haringsrob , what do you mean exactly. @james2doyle uses a clone?! Is this the outdated version the way he uses it? Can you provide a more specific description to install and use it? Where I have to clone/copy the repo into? What's about the command in your example? Do I have to create a directory lsps in my .config, or is it flexible and I can choose the path? I'm really lost about this plugin...

haringsrob commented 1 year ago

You can choose where you clone it. Just point to the correct "executable".

I have not made releases the last times I worked on this because it moves rather fast.

tolyod commented 1 month ago

capabilities

where is capabilities defined? or mabt it is some typo ?