20231210182437-telekasten show current vault
P/telekasten_show_current_vault
It seems like the telekasten picker does not know the existing vault so there is no variable around it. It changes the current settings based on the configuration of each vault.
https://github.com/renerocksai/telekasten.nvim/blob/main/lua/telekasten/pickers.lua
However current home value can be used as a proxy
local function currenthome()
local home = require('telekasten').Cfg.home
if home == "/path/to/default" then return "default" end
if home == "/path/to/alternative" then return "alternative" end
end
and then call the function in the statusline configuration. E.g.: lualine:
require('lualine').setup {
options = {
...
},
sections = {
...
lualine_x = { {currenthome}, 'filetype'},
...
}
}
tags: #telekasten
- [[]]