svaante / lsp-snippet Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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!
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))))
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.