diff --git a/internal/buffer/autocomplete.go b/internal/buffer/autocomplete.go index 679ebd29..c9ece909 100644 --- a/internal/buffer/autocomplete.go +++ b/internal/buffer/autocomplete.go @@ -246,14 +246,14 @@ func LSPComplete(b *Buffer) []Completion { Start: toLoc(item.TextEdit.Range.Start), End: toLoc(item.TextEdit.Range.End), }} - for _, e := range item.AdditionalTextEdits { - d := Delta{ - Text: []byte(e.NewText), - Start: toLoc(e.Range.Start), - End: toLoc(e.Range.End), - } - completions[i].Edits = append(completions[i].Edits, d) - } + // for _, e := range item.AdditionalTextEdits { + // d := Delta{ + // Text: []byte(e.NewText), + // Start: toLoc(e.Range.Start), + // End: toLoc(e.Range.End), + // } + // completions[i].Edits = append(completions[i].Edits, d) + // } } else { var t string if len(item.InsertText) > 0 { diff --git a/internal/util/util.go b/internal/util/util.go index 317cd65d..e662ef15 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -423,7 +423,7 @@ func IsNonAlphaNumeric(c rune) bool { } func IsAutocomplete(c rune) bool { - return c == '.' || !IsNonAlphaNumeric(c) + return !unicode.IsSpace(c) || !IsNonAlphaNumeric(c) } func ParseSpecial(s string) string {