editor: move snippets provider into sourceview.