bluz71 / nvim-linefly Goto Github PK
View Code? Open in Web Editor NEWA simple Lua statusline for Neovim
License: MIT License
A simple Lua statusline for Neovim
License: MIT License
Thank you so much for this plugin!
nvim-dap-ui windows lose their original names
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = "/tmp/nvim-debug-issue/" .. name
end
vim.g.mapleader = " "
local plugins = {
{
"rcarriga/nvim-dap-ui",
dependencies = "mfussenegger/nvim-dap",
lazy = false,
keys = {
{
"<leader>du",
function() require("dapui").toggle() end,
desc = "Toggle Debugger UI",
},
},
config = true,
},
{
"bluz71/nvim-linefly",
enabled = true
},
}
--------------------------------------------------------------------------------
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
require("lazy").setup(plugins)
debug-issue.lua
nvim --clean +'so debug-issue.lua'
. Don't worry, it won't mess up with your home directory (see line 2)<leader>du
to bring the nvim-dap-ui windowsYou will notice the issue with window names
(then, if you change enabled = false
on line 24 you will see the window names as expected)
btw, I love that this plugin renames the tabs to Tab:1 ๐ nice touch!
Hi, thanks for the plugin, it's simple and offers many customization without writing a ton of code.
Why not an option for mode indicator ?
When I installed linefly this error appears in the statusline. Maybe another plugin is causing this?
Here is my packer.lua:
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Only required if you have packer configured as `opt`
vim.cmd.packadd('packer.nvim')
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
-- or , branch = '0.1.x',
requires = { { 'nvim-lua/plenary.nvim' } }
}
use({
'rose-pine/neovim',
as = 'rose-pine',
config = function()
vim.cmd('colorscheme rose-pine')
end
})
use({ 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' })
use('nvim-treesitter/playground')
use('theprimeagen/harpoon')
use('mbbill/undotree')
use('tpope/vim-fugitive')
use {
'VonHeikemen/lsp-zero.nvim',
requires = {
-- LSP Support
{ 'neovim/nvim-lspconfig' },
{ 'williamboman/mason.nvim' },
{ 'williamboman/mason-lspconfig.nvim' },
-- Autocompletion
{ 'hrsh7th/nvim-cmp' },
{ 'hrsh7th/cmp-buffer' },
{ 'hrsh7th/cmp-path' },
{ 'saadparwaiz1/cmp_luasnip' },
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'hrsh7th/cmp-nvim-lua' },
-- Snippets
{ 'L3MON4D3/LuaSnip' },
{ 'rafamadriz/friendly-snippets' },
}
}
use("folke/zen-mode.nvim")
use("windwp/nvim-ts-autotag")
use {
"windwp/nvim-autopairs",
config = function() require("nvim-autopairs").setup {} end
}
use {
's1n7ax/nvim-terminal',
config = function()
vim.o.hidden = true
require('nvim-terminal').setup()
end,
}
use {
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
requires = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
}
}
use 'bluz71/nvim-linefly'
end)
Seems the plugin doesn't handle the special case of quickfix and probably location lists.
With the default status line I can see the quickfix title:
while with linefly there is simply no title:
Aside from that, do you think it could be possible to add a setting to disable the mode status ? (normal, visual, etc..)
Thanks for the plugin!
Add showcmd
to the statusline potentially when showcmdloc=statusline
.
I noticed in #5 this functionality was mentioned, but it does not show up in when i load the plugin.
Neovim supports cmdheight=0
which by default will hide: macro recording, search count and showcmd
messages. It would be nice to provide a capability to view these messages somewhere in the statusline
.
RecordingEnter
and RecordingLeave
events can be hooked into, refer here and hereshowcmd
, the new showcmdloc
option in Neovim 0.9 could be enoughNeovim 0.10
provides a new vim.system
function.
This should be used instead of io.popen
here for modern versions of Neovim.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.