Skip to content

notomo/stlparts.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stlparts.nvim

statusline components.

Example

local stlparts = require("stlparts")

local path = function()
  return vim.fn.expand("%:p:~")
end

local column = function()
  return vim.fn.col(".")
end

local filetype = function()
  return vim.bo.filetype
end

local Separate = stlparts.component.separate

stlparts.set("default", {
  " ",
  Separate({
    path,
    { column, " ", filetype },
  }),
  " ",
})

vim.opt.statusline = [[%!v:lua.require("stlparts").build("default")]]

About

Neovim lua statusline components

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published