ConfigKnown configures options based on the supported language info in parse. Returns true if supported.
()
| 267 | // ConfigKnown configures options based on the supported language info in parse. |
| 268 | // Returns true if supported. |
| 269 | func (tb *Buffer) ConfigKnown() bool { |
| 270 | if tb.Info.Known != fileinfo.Unknown { |
| 271 | if tb.spell == nil { |
| 272 | tb.setSpell() |
| 273 | } |
| 274 | if tb.Complete == nil { |
| 275 | tb.setCompleter(&tb.ParseState, completeParse, completeEditParse, lookupParse) |
| 276 | } |
| 277 | return tb.Options.ConfigKnown(tb.Info.Known) |
| 278 | } |
| 279 | return false |
| 280 | } |
| 281 | |
| 282 | func (tb *Buffer) SetFileExt(ext string) *Buffer { |
| 283 | tb.Lines.SetFileExt(ext) |
no test coverage detected