@@ -113,6 +113,16 @@ func (state *State) Completion(logger *log.Logger, id int, filePath string) lsp.
113
113
Detail : "This is the very default granular detail about this completion" ,
114
114
Documentation : "People rarely read documentation for theses pieces of codes, if you want it more then better search it over the internet" ,
115
115
},
116
+ {
117
+ Label : "suggestion for writing" ,
118
+ Detail : "This should be a good placeholder for you to fill space with" ,
119
+ Documentation : "It just is placeholder documentation" ,
120
+ },
121
+ {
122
+ Label : "very informative" ,
123
+ Detail : "least sounding" ,
124
+ Documentation : "finally this is going to end" ,
125
+ },
116
126
}
117
127
118
128
completionsResponse := lsp.CompletionResponse {
@@ -139,7 +149,17 @@ func getDiagnostics(logger *log.Logger, contents string) [] lsp.Diagnostic {
139
149
Range : LineRange (row , idx , idx + len ("VS Code" )),
140
150
Serverity : 1 ,
141
151
Source : "Elitism" ,
142
- Message : "One should ALWAYS use superior editors ONLY" ,
152
+ Message : "One should ALWAYS use superior editors ONLY -.-" ,
153
+ })
154
+ }
155
+ if strings .Contains (line , "nvim" ) {
156
+ idx := strings .Index (line , "nvim" )
157
+ logger .Print ("-------------[nvim]FOUND FOUND FOUND-------------" )
158
+ diagnostics = append (diagnostics , lsp.Diagnostic {
159
+ Range : LineRange (row , idx , idx + len ("nvim" )),
160
+ Serverity : 4 ,
161
+ Source : "Elitism" ,
162
+ Message : "nvim is an excellent and powerful editor. Good boi : )" ,
143
163
})
144
164
}
145
165
}
0 commit comments