Giter Club home page Giter Club logo

galaxyline.nvim's Introduction

🌌 galaxyline.nvim

Stargazers Issues Contributors

 

💭 About

Galaxyline is a light-weight and Super Fast statusline plugin. Galaxyline componentizes Vim's statusline by having a provider for each text area.

This means you can use the api provided by galaxyline to create the statusline that you want, easily.

🧩 Requires

⚙️ Setup

Plug 'glepnir/galaxyline.nvim' , { 'branch': 'main' }

" If you want to display icons, then use one of these plugins:
Plug 'nvim-tree/nvim-web-devicons' " lua
Plug 'ryanoasis/vim-devicons'       " vimscript
use({
  'glepnir/galaxyline.nvim',
  branch = 'main',
  -- your statusline
  config = function()
    require('my_statusline')
  end,
  -- some optional icons
  requires = { 'nvim-tree/nvim-web-devicons', opt = true },
})

🧭 Api

Section Variables

The type of all of these section variables:

  • require('galaxyline').short_line_list some special filetypes that show a short statusline like LuaTree defx coc-explorer vista etc.

  • require('galaxyline').section.left the statusline left section.

  • require('galaxyline').section.mid the statusline mid section.

  • require('galaxyline').section.right the statusline right section.

  • require('galaxyline').section.short_line_left the statusline left section when filetype is in short_line_list and for inactive window.

  • require('galaxyline').section.short_line_right statusline right section when filetype is in short_line_list and for inactive window.

Component Keyword

Example of a FileSize component in the left section:

require('galaxyline').section.left[1] = {
  FileSize = {
    provider = 'FileSize',
    condition = function()
      if vim.fn.empty(vim.fn.expand('%:t')) ~= 1 then
        return true
      end
      return false
    end,
    icon = '',
    highlight = { colors.green, colors.purple },
    separator = '',
    separator_highlight = { colors.purple, colors.darkblue },
  },
}

provider can be a string, function or table. When it's a string, it will match the default provider group. If it doesn't match an existing group you will get an error. You can also use multiple default providers in provider. If you are using multiple then you must provide an array table for provider.

Default Provider Groups:

-- source provider function
local diagnostic = require('galaxyline.provider_diagnostic')
local vcs = require('galaxyline.provider_vcs')
local fileinfo = require('galaxyline.provider_fileinfo')
local extension = require('galaxyline.provider_extensions')
local colors = require('galaxyline.colors')
local buffer = require('galaxyline.provider_buffer')
local whitespace = require('galaxyline.provider_whitespace')
local lspclient = require('galaxyline.provider_lsp')

-- provider
BufferIcon  = buffer.get_buffer_type_icon,
BufferNumber = buffer.get_buffer_number,
FileTypeName = buffer.get_buffer_filetype,
-- Git Provider
GitBranch = vcs.get_git_branch,
DiffAdd = vcs.diff_add,            -- support vim-gitgutter vim-signify gitsigns
DiffModified = vcs.diff_modified,  -- support vim-gitgutter vim-signify gitsigns
DiffRemove = vcs.diff_remove,      -- support vim-gitgutter vim-signify gitsigns
-- File Provider
LineColumn = fileinfo.line_column,
FileFormat = fileinfo.get_file_format,
FileEncode = fileinfo.get_file_encode,
FileSize = fileinfo.get_file_size,
FileIcon = fileinfo.get_file_icon,
FileName = fileinfo.get_current_file_name,
FilePath = fileinfo.get_current_file_path,
LinePercent = fileinfo.current_line_percent,
ScrollBar = extension.scrollbar_instance,
VistaPlugin = extension.vista_nearest,
-- Whitespace
Whitespace = whitespace.get_item,
-- Diagnostic Provider
DiagnosticError = diagnostic.get_diagnostic_error,
DiagnosticWarn = diagnostic.get_diagnostic_warn,
DiagnosticHint = diagnostic.get_diagnostic_hint,
DiagnosticInfo = diagnostic.get_diagnostic_info,
-- LSP
GetLspClient = lspclient.get_lsp_client,

-- public libs

require('galaxyline.provider_fileinfo').get_file_icon_color -- get file icon color
-- custom file icon with color
local my_icons = require('galaxyline.provider_fileinfo').define_file_icon() -- get file icon color
my_icons['your file type here'] = { color code, icon}
-- if your filetype does is not defined in neovim  you can use file extensions
my_icons['your file ext  in here'] = { color code, icon}

-- built-in condition
local condition = require('galaxyline.condition')
condition.buffer_not_empty  -- if buffer not empty return true else false
condition.hide_in_width  -- if winwidth(0)/ 2 > 40 true else false
-- find git root, you can use this to check if the project is a git workspace
condition.check_git_workspace()

-- built-in theme
local colors = require('galaxyline.theme').default

bg = '#202328',
fg = '#bbc2cf',
yellow = '#ecbe7b',
cyan = '#008080',
darkblue = '#081633',
green = '#98be65',
orange = '#ff8800',
violet = '#a9a1e1',
magenta = '#c678dd',
blue = '#51afef';
red = '#ec5f67';

You can also use the source of the provider function.

  • condition is a function that must return a boolean. If it returns true then it will load the component.

  • icon is a string that will be added to the head of the provider result. It can also be a function that returns a string.

  • highlight is a string, function or table that can be used in two ways. The first is to pass three elements: the first element is fg, the second is bg, and the third is gui. The second method is to pass a highlight group as a string (such as IncSearch) that galaxyline will link to.

  • separator is a string, function or table. notice that table type only work in mid section, It is not just a separator. Any statusline item can be defined here, like %<,%{},%n, and so on.

  • separator_highlight same as highlight.

  • event type is string. You configure a plugin's event that will reload the statusline.

🎉 Awesome Show

eviline

galaxyline

galaxyline

galaxyline

galaxyline

You can find more custom galaxyline examples here.

 

Copyright © 2020-present Raphael

galaxyline.nvim's People

Contributors

66ring avatar arpangreat avatar botbotty avatar cantoromc avatar davidsu avatar disrupted avatar eruizc-dev avatar farkal avatar glepnir avatar iron-e avatar joshuachp avatar kraftwerk28 avatar kunzaatko avatar kyoh86 avatar l-kershaw avatar mr-oliva avatar mrkish avatar nikolam-dev avatar nilay1221 avatar nxvu699134 avatar p00f avatar rakerzh avatar reptarsrage avatar richin13 avatar salkin-mada avatar sindrets avatar tmwitczak avatar wren avatar yamatsum avatar zereb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

galaxyline.nvim's Issues

Path instead of just filename

Hi!
I would like to see in my bar the complete path, not just the filename. Say I am in Documents and open the file Documents/folder1/file1. I would like to see folder1/file1, as I had before with lightline. Hope it is possible. Thanks

Sourcing init.vim temporarily breaks statusline

If you so init.vim the statusline colors seem to disable and some extra separator icons get added. This seems to resolve itself after switching buffers and the statusline being refreshed. This does require opening a new buffer if you only have one open.

Create a bar if at least a diagnostic is present

Hi!
I would like to insert a vertical bar | in the bar if at least one diagnostic is present (so far just added check on Error).
I am using nvim-lspconfig, and tried using the following in the configuration file

local lsp,api = vim.lsp,vim.api
local function get_nvim_lsp_diagnostic(diag_type)
  if vim.tbl_isempty(lsp.buf_get_clients(0)) then return '' end
  local active_clients = lsp.get_active_clients()
  if active_clients then
    local count = 0
    for _, client in ipairs(active_clients) do
       count = count + lsp.diagnostic.get_count(api.nvim_get_current_buf(),diag_type,client.id)
    end
    if count ~= 0 then return count end
  end
end
function DiagCheck()
  if not vim.tbl_isempty(lsp.buf_get_clients(0)) then
    if not (get_nvim_lsp_diagnostic('Error') == nil) then
      return '|'
    end
  end
  return ''
end

gls.left[11] = {
  DiagnosticBar = {
    provider = DiagCheck,
    highlight = {colors.fg,colors.line_bg}
  }
}

As you can see, it is basically no more than a paste from the provider_diagnostic.lua file. However, I now have an error:

/home/bobicino/.config/nvim/plug-conf/galaxyline.lua:190: attempt to
index field 'diagnostic' (a nil value) function: builtin#18 /home/bobicino
/.config/nvim/plug-conf/galaxyline.lua:190: attempt to index fie
ld 'diagnostic' (a nil value) function: builtin#18 /home/bobicino/.co
nfig/nvim/plug-conf/galaxyline.lua:190: attempt to index field 'diagn
ostic' (a nil value)

Could you give me some tips?

Galaxyline light and darkmode

I am using a light and dark galaxyline theme and it works great normally. However when I change my neovim colorscheme from galaxyline doesn't change with it like I'd expect.

M = {}

M.dark = {
    bg = "#282c34",
    bg2 = "#212026",
    base = "#b2b2b2",
    comp = "#c56ec3",
    act1 = "#222226",
    DarkGoldenrod2 = "#eead0e", -- normal / unmodified
    chartreuse3 = "#66cd00", --insert
    SkyBlue2 = "#7ec0ee", -- modified
    chocolate = "#d2691e", -- replace
    gray = "#bebebe", -- visual
    plum3 = "#cd96cd", -- read-only / motion
    yellow = "#fabd2f",
    cyan = "#008080",
    darkblue = "#081633",
    green = "#afd700",
    orange = "#FF8800",
    purple = "#5d4d7a", --act2
    magenta = "#d16d9e",
    grey = "#c0c0c0",
    blue = "#0087d7",
    red = "#ec5f67",
    comments = "#2aa1ae",
    head1 = "#4f97d7",
    error = "#FC5C94",
    warning = "#F3EA98",
    info = "#8DE6F7"
}

M.light = {
    bg = "#fbf8ef",
    bg2 = "#efeae9",
    base = "#655370",
    comp = "#6c4173",
    act1 = "#e7e5eb",
    DarkGoldenrod2 = "#eead0e", -- normal / unmodified
    chartreuse3 = "#66cd00", --insert
    SkyBlue2 = "#7ec0ee", -- modified
    chocolate = "#d2691e", -- replace
    gray = "#bebebe", -- visual
    plum3 = "#cd96cd", -- read-only / motion
    yellow = "#fabd2f",
    cyan = "#008080",
    darkblue = "#081633",
    green = "#afd700",
    orange = "#FF8800",
    purple = "#d3d3e7", --act2
    magenta = "#d16d9e",
    grey = "#c0c0c0",
    blue = "#0087d7",
    red = "#ec5f67",
    comments = "#2aa1ae",
    head1 = "#3a81c3",
    error = "#FC5C94",
    warning = "#F3EA98",
    info = "#8DE6F7"
}

function M.color(val)
    if vim.o.background ~= nil and vim.o.background == "light" then
        return M.light[val]
    elseif vim.o.background ~= nil and vim.o.background == "dark" then
        return M.dark[val]
    else
        local hours = tonumber(os.date("%H"))
        if hours >= vim.g["dusk_til_dawn_morning"] and hours < vim.g["dusk_til_dawn_night"] then
            return M.light[val]
        else
            return M.dark[val]
        end
    end
end

return M

I am using M.color as a helper function here to set the colors.

I have tried using

:lua require('galaxyline').disable_galaxyline()
:lua require('galaxyline').load_galaxyline()

to restart it but that doesn't seem to do it either.

Here's my config

What's the best way to approach this?

Reappears when using Goyo on save

Just wondering if you would consider looking into this issue.

When I save a file and Goyo is active the bar reappears. I would like it to stay hidden when Goyo is active.

image

race conditions

I'm giving this a go, have to say I love it!!!
I've been having to code some workarounds though.
Issues happen on entering fzf and terminal windows. I started out with spaceline and soon saw that sometimes in terminal buffers there is no branchName but the git icon is still there. Started investigating, the logic buffer_not_empty isn't the same as vcs.get_git_branch.
"Fair enough", I thought to myself, let's change the condition for GitIcon to be vcs.get_git_branch. Still get sometimes the icon there and no gitBranchName. So I decided that the GitIcon will need to have the following provider

function() 
  if(vcs.get_git_branch()) then 
    return ' THE_ICON ' 
  end 
  return ''
end

Ok, that solves that, now I'm battling the filename. Opening :term I get empty filename, go to some other file and back, now I get the desired zsh. I'll probably try to call load_galaxyline after n ms for mode() == 't' to workaround this(will need to watch not to enter an infinite loop).
I'm guessing that all these events 'FileType','BufWinEnter','BufReadPost','BufWritePost','BufEnter','WinEnter','FileChangedShellPost','VimResized' fire very quickly one after another, I'd imagine that debouncing the call to load_galaxyline would solve the problem.
Having said that, that's my first time writing any lua, I'm just getting my feet wet. I see there is a defer_fn function, I don't see a debounce but shouldn't be too hard to implement one.

Thanks for the amazing work!

#40 follow up - sourcing init.vim breaks statusline

Since #40 has been locked I figured I'd put this here. This minimal init file is able to reproduce :so min_init.vim breaking the statusline. I didn't mean to come of as rude, just wanted to find a way to resolve the issue. Thanks for your work on this.

set packpath=
set rtp+=$PWD/nvim-web-devicons
set rtp+=$PWD/galaxyline.nvim
lua require('eviline')
set termguicolors
hi clear
if exists("syntax_on")
    syntax reset
endif

Doesn't work with Packer.nvim?

Hi! Thanks for making this awesome plugin.
I am trying to install it using Packer. It seems to kind of work. From the command line I can run :lua require'galaxyline' with no errors and I am able to manually populate the galaxyline from the command line, but as soon as I source galaxyline in a lua settings file instead I get massive amounts of errors.

2020-10-29-175534_1920x1080_scrot

The plugin is installed using the packer.nvim package manager https://github.com/wbthomason/packer.nvim

like this:

use 'glepnir/galaxyline.nvim'
use 'kyazdani42/nvim-web-devicons' -- lua

Add icon_highlight option

What do you think of this option?

  AnyName = {
    ...
    icon = '',
    icon_highlight = {colors.green, colors.red},
    ...
  }

[FR] A way to add filetypes/icons to FileIcon provider?

Hi

A small issue I am having is that I am using some filetypes that are "rare" in most circumstances and thus not covered by the FileIcon provider. As a result I see the question mark icon a lot for those but I would love to be able to add my own icons to the provider.

And just fyi, the file types I am talking about are for example supercollider (.scd and .sc).

Thanks! <3

Remove short_line config and add new keyword InActive SpecialBuffer

At present, short_line is used to display special buffers such as defx NvimTree Vista, and short_line is also used when Winleave autcomd is triggered, but many users are confused about this, and some custom codes and some duplicate codes have been added. Maybe we You can add two keywords to support for example SpecialBuffer InActive? Or use current keyword condition withInActive.

1

 FileSize = {
    provider = 'FileSize',
    InAcitve = true,  -- or false when trigger autocmd `Winleave` It also display. false doesnot dispaly
    SpecialBuffer = true . -- buffer filetype in special list. it also display . false doesnot dispaly
  }

2

This way requires some judgmental operations yourself

 FileSize = {
    provider = 'FileSize',
    condition = function()
      if has_value(vim.bo.filetype,special_filetype_list)  then
        return true
      end
      return false
      end,
    InAcitve = true,  -- or false when trigger autocmd `Winleave` It also display. false doesnot dispaly
  }

Error when run nvim

Hi, any idea why i get this error?
neovim version: NVIM v0.5.0-dev+1025-g0fad952a2
SO: Ubuntu 20.04.1

image

Powerline symbol scaling

Maybe this doesn't have anything to do with the plugin itself, but for some reason powerline symbol separators are not the right size in my statusline. I'm using nerd font patched Jetbrains Mono, and the symbols are the right size in the buffer text, but not on the statusline.

Screenshot_20201217_004201

I know in spacemacs scaling for powerline symbols was a configuration option. I don't know enough about vim to know if that's an issue or an option here.

Odd "dark" areas of statusline, unable to remove/control

Thanks for this excellent plugin @glepnir!

I've finally recreated my old vimscript-based statusline over to lua via galaxyline..

I have one final odd thing; for some reason there's this dark/black background area to the left of the "right" section (looks to be hex #1c272d).

Here's a screenshot to illustrate the area at the bottom right:

Screen Shot 2020-12-17 at 11 46 20 AM

Here's a link to my current statusline setup: https://github.com/megalithic/dotfiles/blob/main/nvim/.config/nvim/lua/mega/statusline.lua

If this is not the right place to ask about this, please direct me to a better spot!

Thanks again!

Opening a .h C header file gives error

Am currently using the spaceline example almost as is.

While opening a C header file with .h extension, I get the following error

Error detected while processing BufEnter Autocommands for "*":
E5108: Error executing lua ... pack/paqs/start/galaxyline.nvim/lua/galaxyline/colors.lua:13 attempt to concatenate a nil value

This doesn't happen for any other files I have tried so far.

share your custom galaxyline

Hey need some screenshots in README. You can share your custom galaxyline screenshots in here and you can add the link .

Getting icons to show up

Thanks for the plugin. I am a little confused on how to get icons to show up. Using the examples you give and those of others, icons (e.g. the filetype icons) are blank. Does my font need to support the icons to make them show?

Examples do not seem to work

By copying and pasting either the spaceline or eviline examples into my lua folder, and then requiring them into my init.vim. I do see that the needed glyphs are rendered. But there are no colors, and it just looks really odd:
image

echo $TERM can be either screen (while in tmux) or xterm-termite when not in tmux.

Any ideas at what might cause this?

Show coc status in galaxyline

Is there a way to use the coc#status() with this plugin? I know diagnostics, warnings, etc. are supported, but this function (and others like coc_current_function show more info. Is there a way to call vim plugin functions from lua?

errors on NeoVim HEAD

I'm using the following versions of NeoVim.
And buf_diagnostics_count is deprecated. Use 'vim.lsp.diagnostic.get_count' error occurred.

$ nvim -version      
NVIM v0.5.0-35325ddac
Build type: Release
LuaJIT 2.0.5

An error if the branch is in a conflicted state

If the branch is in a conflicted state, the branch name cannot be obtained and the following errors keep appearing.

lua/galaxyline/provider_vcs.lua:118: attempt to concatenate local 'branch_name' (a nil value) function: builtin#18 ...in/.cache/init.vim/.dein/lua/galaxyline/provider_vcs.lua:118: attempt to concatenate l.../gala
xyline/provider_vcs.lua:118: attempt to concatenate local 'branch_name' (a nil value) function: builtin#18 ...in/.cache/init.vim/.dein/lua/galaxyline/provider_vcs.lua:118: attempt to concatenate local 'branch_name' (a nil value)
E15: Invalid expression: luaeval('require("galaxyline").component_decorator')("GitBranch")

Show nvim lsp-status as a segment

The following repo provides a status() function which we can use to show the currently attached lsp server and status. https://github.com/nvim-lua/lsp-status.nvim

I tried adding this as the LeftEnd segment, but nothing shows up:

gls.left[10] = {
  LeftEnd = {
    provider = function() return require('lsp-status').status() end,
    highlight = {colors.line_bg,colors.line_bg}
  }
}

But interestingly if i print out the status() then it does show up in the neovim console:

gls.left[10] = {
  LeftEnd = {
    provider = function() return print(require('lsp-status').status()) end,
    highlight = {colors.line_bg,colors.line_bg}
  }
}

And it shows up in console like so:
image

So does,galaxyline support these custom providers? Or is there any other way to make this work and show the lsp status? Ideally i just wanted to show a spinner showing what lsp is doing when opening a file. This was the starter point for me.
Any help would be appreciated. Thanks

How to inherit colors from colorscheme?

Pretty much what the title says. I can't quite figure out how to do something like this:

local colors = {
		bg = colorscheme.bg,
		yellow = colorscheme.yellow,
		cyan = colorscheme.cyan,
                .... etc....
}

Is this (easily) doable? I'm a complete lua noob, so please bear with me ;-)

K

Highlights not working

Hi,
thanks for this cool plugin and the nice approach.
I just started, but colors do not work for me. Do need to set any vim option?

Here a minimal configuration of the plugin:

local section = require('galaxyline').section

section.left[1] = {
  test = {
    provider = function() return 'test' end,
    highlight = { '#ff0000a', '#00ff00' },
  }
}

`provider_diagnostic.lua`'s error

If only one file is opened, there is no problem, but if multiple files are opened, the following error occurs. The only one I've tried is Go.

./lua/galaxyline/provider_diagnostic.lua:18: attempt to index a nil value function: builtin#18

When I tried to run :lua print(vim.inspect(vim.lsp.buf_get_clients(0))) in this state, it displayed as follows. It is true that there are no zeros at the index of the array.

 lua print(vim.inspect(vim.lsp.buf_get_clients(0)))
{
  [2] = {
    _on_attach = <function 1>,
    callbacks = <1>{
      ["window/logMessage"] = <function 2>,
      ["window/showMessage"] = <function 3>,
      ["workspace/configuration"] = <function 4>,
      <metatable> = <2>{
        __tostring = <function 5>
      }
    },
    cancel_request = <function 6>,
    config = {
      _on_attach = <function 7>,
      callbacks = <table 1>,
      capabilities = {
        textDocument = {
          completion = {
            completionItem = {
              snippetSupport = true,
              <metatable> = <table 2>
            },
            <metatable> = <table 2>
          },
          <metatable> = <table 2>
        },
        workspace = {
          configuration = true,
          <metatable> = <table 2>
        },
        <metatable> = <table 2>
      },
      cmd = { "gopls" },
      filetypes = { "go", "gomod" },
...

Attempt to compare number with nil

Thanks for the great plugin!

But, when I use galaxyline.nvim with the latest nvim, I get the following error.
This error did not occur until recently.

...er/start/galaxyline.nvim/lua/galaxyline/provider_vcs.lua:178: attempt to compare number with nil
E15: Invalid expression: luaeval('require("galaxyline").component_decorator')("DiffAdd")

Environment

OS: Ubuntu
Nvim:

NVIM v0.5.0-dev+1000-g84d08358b
Build type: Release
LuaJIT 2.1.0-beta3

galaxyline.nvim: use 9fdebfb
nvim setting: https://github.com/DuGlaser/nvim_setting

Support highlight links

In addition to setting specific colors for sections, I'd love to be able to set a highlight group to link. That way, you can specify a single string for highlight, and galaxyline will create the link.

nvim crashing with GitBranch provider

version

NVIM v0.5.0-767-g0f590ae2a
Lua 5.4.1
LuaJIT 2.1.0-beta3

issue

using the following provider will crash nvim if opening a session, file etc. in a non .git directory.

gls.left[6] = {
  GitBranch = {
    provider = 'GitBranch',
    condition = empty_buffer,
    highlight = {colors.grey,colors.purple},
  }
}
  • (as an example) pwd = $HOME
    then cd ~ && nvim some_new_file_which_is_not_in_a_git_repo will hang nvim.

inconsistent visibility in buffers

I really like the plugin however I am facing an issue where the galaxy line is not visible upon initial execution of neovim. If I call a buffer refresh via something like whichkey window in the example , it becomes visible. However on opening a neo-tree split-buffer it disappears again only to come after I close that split-buffer

Demonstration.
galaxyvimissue

Issue Reproduction-
This is my config
The issue seems to be theme agnostic however I am using this theme
I have done no additional customizations besides loading the theme on my part

config samples

Hi just a suggestion: Only provide screeshot with accompanying code.

dynamic change colors when mode() change?

In viml easy to do that. but in lua got some problem. also can use InsertEnter and InsertLeave to change .but that only work for normal and insert mode , so If want get different color in other modes, need improve. Currently If trigger other window that will redraw the mode color ,condition is write a function in highlight fg filed to dynamic return color.

Question: Colorscheme examples

local colors = {
  bg = '#282c34',
  line_bg = '#353644',
  fg = '#8FBCBB',
  fg_green = '#65a380',

  yellow = '#fabd2f',
  cyan = '#008080',
  darkblue = '#081633',
  green = '#afd700',
  orange = '#FF8800',
  purple = '#5d4d7a',
  magenta = '#c678dd',
  blue = '#51afef';
  red = '#ec5f67'
}
  1. fg_green is unused in both examples. What was planned to use it for?

  2. Even complicated color schemes use normal colors. Can we collect all colors of color schemes, such that one can copy-paste them and prototype them abit? Potential list of colors.

Additional providers

Would you be interested in starting a wiki page or some sort of additional readme in a docs folder with other providers that people can easily grab and use?

For example, here is a simple trailing whitespace function

local function trailing_whitespace()
    local trail = vim.fn.search("\\s$", "nw")
    if trail ~= 0 then
        return ""
    else
        return nil
    end
end

A bug occurs when using vista

  1. :Vista!!
    image
  2. Put the cursor in VISTA's window and :Vista!!
    image

The galaxyline.nvim didn't go back to what you were before.

But if I put the cursor in myfile.h's window and :Vista!! It work well

My vim config file:

luafile ~/.config/nvim/plugged/galaxyline.nvim/example/eviline.lua

filename on splitwindow

I really need to see the filepath on splitwindows, looks like by design inactive_galaxyline greys out non-focused window.
Can I get the filepath displayed there?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.