From 1d327eb10b0092b519823950631ae1855755f3a9 Mon Sep 17 00:00:00 2001 From: Manuel Morales Date: Tue, 13 Jul 2021 11:36:23 -0500 Subject: feat: Change README documentation to set tabline Set tabline in a lua-ish manner --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index f1970cd..59f3327 100644 --- a/README.md +++ b/README.md @@ -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: ``` -- cgit v1.2.3