From 3c778ef362e25049d6da9485833c1d0dbb20b5ab Mon Sep 17 00:00:00 2001 From: liquidz Date: Sun, 10 Nov 2024 16:00:06 +0900 Subject: [PATCH] docs: Add lightline configuration example --- doc/pages/configuration/vim.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/pages/configuration/vim.adoc b/doc/pages/configuration/vim.adoc index 9f6469e..745d51c 100644 --- a/doc/pages/configuration/vim.adoc +++ b/doc/pages/configuration/vim.adoc @@ -42,6 +42,24 @@ Therefore, you can use your preferred plugin to modify the behavior of `vim.ui.s * https://github.com/nvim-telescope/telescope-ui-select.nvim ==== + +==== Status line + +`elin#status` function returns the nREPL connection status text, and you can use it in the https://vim-jp.org/vimdoc-en/windows.html#status-line[status line]. + +.e.g. https://github.com/itchyny/lightline.vim[lightline.vim] +[source,vim] +---- +let g:lightline = { + \ 'tabline': { + \ 'right': [['filetype', 'bufnum' ], ['elin'] ] + \ }, + \ 'component_function': { + \ 'elin': 'elin#status#get', + \ }, + \ } +---- + ==== Integration with other plugins There are some <> that can be used with Elin.