Code Monkey home page Code Monkey logo

lsp-snippet's People

Contributors

axelknock avatar svaante avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

axelknock

lsp-snippet's Issues

Support for multiple placeholders with same content and indentations according to mode

Hi, I'm trying to use this package to make TempEL work with Eglot. But I found a few problems when I use texlab (an LSP implementation for LaTeX).

The first problem is that the same placeholder appears multiple times cannot be entered simultaneously. For example, to input something like this (from TempEL's readme), when the cursor is at \begin{ | }, the inputted text (enumerate) is expected to appear at \end{ | } at the same time. But it does not, and I have to input the same text twice. It seems that the placeholder are treated as two independent ones.

The second is that indentations are expanded as tabs. I suspect this is caused by an improperly implementation of LSP server because this phenomenon doesn't occurs when using clangd (an LSP implementation for C/C++). I'm not sure about this because I don't know much about LSP. But would you please try to convert tabs to indentations according to mode (like > in the tempo syntax)?

Thank you for your work!

malformed string with gopls

Hello, I've been using lsp-snippet (for tempel) with rust for some time and everything seem to work fine with their LSP server. I had to edit a go project and I've decided to try it with gopls. The server seems to produce an invalid str format for lsp-snippet.

small reproducible case

package main

import (
	"fmt"
)

func main() {


// Complete with Println
	fmt.Print 
}

The server return the following

Possible malformed snippet "Println${1:}"

The following added test produce the same error.

  (should
   (equal (lsp-snippet-parse "${1:}")
          '((tabstop 1))))

rust-analyzer: no space after placeholder

See this:
Screenshot from 2023-12-19 at 17_47_53 149043922

There is supposed to be a space between the first placeholder and the equal sign, and between the second placeholder and the opening brace (yasnippet does this correctly)

Sorry if this is hard to reproduce with other servers, r-a is the only one I use which provides space-after-placeholder snippets

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.