Make all plugin configs return a function

Simplifies writing the `config = ...` field for each plugin
This commit is contained in:
2023-09-25 16:08:06 +02:00
parent 7739ec5591
commit ac35b77c87
33 changed files with 747 additions and 618 deletions
+11 -7
View File
@@ -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