Make all plugin configs return a function
Simplifies writing the `config = ...` field for each plugin
This commit is contained in:
@@ -14,10 +14,14 @@
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
require("indent_blankline").setup {
|
||||
use_treesitter = true,
|
||||
show_first_indent_level = false,
|
||||
show_trailing_blankline_indent = false,
|
||||
show_current_context = true,
|
||||
max_indent_increase = 1
|
||||
}
|
||||
local function setup()
|
||||
require("indent_blankline").setup {
|
||||
use_treesitter = true,
|
||||
show_first_indent_level = false,
|
||||
show_trailing_blankline_indent = false,
|
||||
show_current_context = true,
|
||||
max_indent_increase = 1,
|
||||
}
|
||||
end
|
||||
|
||||
return setup
|
||||
|
||||
Reference in New Issue
Block a user