Skip to content

Commit e198503

Browse files
committed
minute additions to analysis
1 parent c6916a8 commit e198503

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

analysis/state.go

+21-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ func (state *State) Completion(logger *log.Logger, id int, filePath string) lsp.
113113
Detail: "This is the very default granular detail about this completion",
114114
Documentation: "People rarely read documentation for theses pieces of codes, if you want it more then better search it over the internet",
115115
},
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+
},
116126
}
117127

118128
completionsResponse := lsp.CompletionResponse{
@@ -139,7 +149,17 @@ func getDiagnostics(logger *log.Logger, contents string) [] lsp.Diagnostic {
139149
Range: LineRange(row, idx, idx + len("VS Code")),
140150
Serverity: 1,
141151
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 : )",
143163
})
144164
}
145165
}

0 commit comments

Comments
 (0)