diff options
author | Manuel Morales <p513manu@gmail.com> | 2021-07-13 11:36:23 -0500 |
---|---|---|
committer | Manuel Morales <p513manu@gmail.com> | 2021-07-13 11:36:23 -0500 |
commit | 1d327eb10b0092b519823950631ae1855755f3a9 (patch) | |
tree | 0ce3399c2bef4f575ca34469ddbca1f1eb327879 | |
parent | 540362f44bc17ae8101828eec00fd00ffc4148bb (diff) | |
download | minitab.nvim-1d327eb10b0092b519823950631ae1855755f3a9.tar.xz minitab.nvim-1d327eb10b0092b519823950631ae1855755f3a9.zip |
feat: Change README documentation to set tabline
Set tabline in a lua-ish manner
-rw-r--r-- | README.md | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -16,12 +16,9 @@ use { 'alvarosevilla95/luatab.nvim', requires='kyazdani42/nvim-web-devicons' } Add this to your init.lua: ``` -Tabline = require'luatab'.tabline -vim.cmd[[ set tabline=%!luaeval('Tabline()') ]] +vim.o.tabline = '%!v:lua.require\'luatab\'.tabline()' ``` -Note: `require'luatab'.tabline` must be assigned to a global variable for it to be picked up by `luaeval`. If you know a better method, PRs are welcome. - ## Configuration You can also define your own tabline function using the provided functions for help. The default tabline is equivalent to: ``` |