diff --git a/README.md b/README.md index dd9ee54..80d4dcf 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,21 @@ Lualine has sections as shown below. Each sections holds it's components e.g. current vim's mode. +
Configuring from `.vim` file + +All the examples below are in lua. You can use the same examples +in `.vim` file by wrapping them in lua heredoc like this: + +```vim +lua << END +require'lualine'.setup() +END +``` + +checkout `:help lua-heredoc`. + +
+
Default config ```lua diff --git a/doc/lualine.txt b/doc/lualine.txt index cf28573..b45d615 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -82,6 +82,20 @@ Lualine has sections as shown below. Each sections holds it’s components e.g. current vim’s mode. +Configuring from `.vim` file + +All the examples below are in lua. You can use the same examples in `.vim` file +by wrapping them in lua heredoc like this: + +> + lua << END + require'lualine'.setup() + END +< + + +checkout `:help lua-heredoc`. + Default config >