Git Product home page Git Product logo

lsp-snippet's Introduction

lsp-snippet - Templating agnostic LSP snippets

This package aims to parse lsp-snippet as close to spec.

lsp-snippet aims to parse LSP snippet syntax to be able to use other completion frameworks other then YASnippet (which is currently the only one supported by eglot and YASnippet) and to be able to use all of the features that the lsp snippet spec allows for.

Currently “Variable Transforms” is not supported due to the dependency on Javascript regexp.

All variables found in spec are supported but not all the undocumented ones found in vscodes implementation.

Note: This package is still a work in progress and lsp-mode integration requires providing YASnippet so if there is any other packages that relies on YASnippet strange things might happen.

Setup with straight

(use-package lsp-snippet-tempel
  :straight (lsp-snippet-tempel :type git
                                :host github
                                :repo "svaante/lsp-snippet")
  :config
  (when (featurep 'lsp-mode)
    ;; Initialize lsp-snippet -> tempel in lsp-mode
    (lsp-snippet-tempel-lsp-mode-init))
  (when (featurep 'eglot)
    ;; Initialize lsp-snippet -> tempel in eglot
    (lsp-snippet-tempel-eglot-init)))

Supported frameworks

Related projects

Links

lsp-snippet's People

Contributors

axelknock avatar svaante avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.