|
2 | 2 | {-# LANGUAGE OverloadedStrings #-}
|
3 | 3 | module Plugins where
|
4 | 4 |
|
5 |
| -import Ide.Types (IdePlugins) |
| 5 | +import Ide.Types (IdePlugins) |
6 | 6 | import Ide.PluginUtils (pluginDescToIdePlugins)
|
7 | 7 |
|
8 | 8 | -- fixed plugins
|
9 | 9 | import Ide.Plugin.Example as Example
|
10 | 10 | import Ide.Plugin.Example2 as Example2
|
11 | 11 | import Development.IDE (IdeState)
|
12 |
| -import Development.IDE.Plugin.HLS.GhcIde as GhcIde |
13 |
| -import Development.IDE.Plugin.Completions as Completions |
14 |
| -import Development.IDE.Plugin.TypeLenses as TypeLenses |
| 12 | +import Development.IDE.Plugin.HLS.GhcIde as GhcIde |
15 | 13 |
|
16 | 14 | -- haskell-language-server optional plugins
|
17 | 15 |
|
@@ -91,55 +89,53 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
|
91 | 89 | then basePlugins ++ examplePlugins
|
92 | 90 | else basePlugins
|
93 | 91 | basePlugins =
|
94 |
| - [ GhcIde.descriptor "ghcide" |
95 |
| - , TypeLenses.descriptor "type-lenses" |
96 |
| - , Completions.descriptor "completions" |
| 92 | + GhcIde.descriptors ++ |
97 | 93 | #if pragmas
|
98 |
| - , Pragmas.descriptor "pragmas" |
| 94 | + Pragmas.descriptor "pragmas" : |
99 | 95 | #endif
|
100 | 96 | #if floskell
|
101 |
| - , Floskell.descriptor "floskell" |
| 97 | + Floskell.descriptor "floskell" : |
102 | 98 | #endif
|
103 | 99 | #if fourmolu
|
104 |
| - , Fourmolu.descriptor "fourmolu" |
| 100 | + Fourmolu.descriptor "fourmolu" : |
105 | 101 | #endif
|
106 | 102 | #if tactic
|
107 |
| - , Tactic.descriptor "tactic" |
| 103 | + Tactic.descriptor "tactic" : |
108 | 104 | #endif
|
109 | 105 | #if ormolu
|
110 |
| - , Ormolu.descriptor "ormolu" |
| 106 | + Ormolu.descriptor "ormolu" : |
111 | 107 | #endif
|
112 | 108 | #if stylishHaskell
|
113 |
| - , StylishHaskell.descriptor "stylish-haskell" |
| 109 | + StylishHaskell.descriptor "stylish-haskell" : |
114 | 110 | #endif
|
115 | 111 | #if retrie
|
116 |
| - , Retrie.descriptor "retrie" |
| 112 | + Retrie.descriptor "retrie" : |
117 | 113 | #endif
|
118 | 114 | #if AGPL && brittany
|
119 |
| - , Brittany.descriptor "brittany" |
| 115 | + Brittany.descriptor "brittany" : |
120 | 116 | #endif
|
121 | 117 | #if class
|
122 |
| - , Class.descriptor "class" |
| 118 | + Class.descriptor "class" : |
123 | 119 | #endif
|
124 | 120 | #if haddockComments
|
125 |
| - , HaddockComments.descriptor "haddockComments" |
| 121 | + HaddockComments.descriptor "haddockComments" : |
126 | 122 | #endif
|
127 | 123 | #if eval
|
128 |
| - , Eval.descriptor "eval" |
| 124 | + Eval.descriptor "eval" : |
129 | 125 | #endif
|
130 | 126 | #if importLens
|
131 |
| - , ExplicitImports.descriptor "importLens" |
| 127 | + ExplicitImports.descriptor "importLens" : |
132 | 128 | #endif
|
133 | 129 | #if moduleName
|
134 |
| - , ModuleName.descriptor "moduleName" |
| 130 | + ModuleName.descriptor "moduleName" : |
135 | 131 | #endif
|
136 | 132 | #if hlint
|
137 |
| - , Hlint.descriptor "hlint" |
| 133 | + Hlint.descriptor "hlint" : |
138 | 134 | #endif
|
139 | 135 | #if splice
|
140 |
| - , Splice.descriptor "splice" |
| 136 | + Splice.descriptor "splice" : |
141 | 137 | #endif
|
142 |
| - ] |
| 138 | + [] |
143 | 139 | examplePlugins =
|
144 | 140 | [Example.descriptor "eg"
|
145 | 141 | ,Example2.descriptor "eg2"
|
|
0 commit comments