Skip to content

wilhelmeek/linear-ls

Repository files navigation

linear-ls

Linear Language Server

Installation

npm i -g linear-ls

neovim

If you use lspconfig, add the following:

if not lspconfigconfigs.linear_ls then
  lspconfigconfigs.linear_ls = {
    default_config = {
      cmd = { "linear-ls", "--stdio" },
      filetypes = { "typescript" },
      root_dir = function(fname)
        return lspconfig.util.find_git_ancestor(fname)
      end,
    },
}
end
lspconfig.lls.setup({
  capabilities = capabilities,
})

And have your Linear token sourced as LINEAR_API_KEY.

Features

Hover on Issues

Hovering on ticket identifier shows the ticket description.

image

Issue Completion

Typing team key, hyphen and search term (e.g. EUC-thing) triggers issue search. Selecting a result puts in a link to your issue.

image

Create Ticket from Text Selection

TODO