Lucee LSP setup?

Hi

So I recently discovered that Lucee received an LSP (Language Server Protocol (LSP) for Lucee :: Lucee Documentation). So I setup a docker container to use the LSP in Nvim.

However the default component does not seem to be present in the lucee docker images (docker.io/lucee/lucee:6.2.0.312) and my question is if i’m using the wrong image or if I have to add my own component?

lucee-lsp_server.logs (7.8 KB)

Edit:
I thought I’d add my vim.lsp config in case someone wants that:

      vim.lsp.config['lucee'] = {	
        cmd = vim.lsp.rpc.connect('10.88.0.100', 2089),
        filetypes = {'cfml', 'cf'},
        single_file_support = true,
        root_markers = {'Application.cfc'},
        settings = {},
      }

Did you ever find an answer to this?

@markdrew created this?

yeah, @Michael_Offner created the connection in Lucee for me but you need to set it up, he creted it so I could do the extension below.

I am doing more work with LuCLI to create your own LSP implementations (so not jsut lucee , but anything you want)

Anything you need specifically?

oh neat… might port that to neovim

what I hoped to gain from an LSP were nvim completions but for that I ended up making cfcomplete (its not perfect but good enough) oricat/cfcomplete.nvim: coldfusion completion source nvim-cmp - Codeberg.org

1 Like

I personally would love to participate in an LSP for Lucee. There is the Lucee LSP implementation that takes care of the protocol, but I’ve had to cobble together some stuff to get basic formatting, etc. from Mark’s cfml-formatter code. Personally, I’m working to enhance the CFML/Lucee plugin for Jetbrains IDEA.

2 Likes