ariel-frischer / bmessages.nvim

Bmessages.nvim better :messages window using an auto-updating buffer.
MIT License
43 stars 3 forks source link

[Question]Your statusline looks very beautiful. Could you share config? #4

Closed jqhr closed 9 months ago

ariel-frischer commented 9 months ago

Thank you I'm basically using defaults of Nvchad. Here is my ui config:

M.ui = {
  lsp = { signature = { disabled = false } },
  theme = "tokyonight",
  transparency = true,
  hl_override = {
    CursorLine = { bg = "#400000" },
  },
}
ariel-frischer commented 9 months ago

Sorry can't share my full config yet, too many personal configurations I'd like to separate before posting publicly.

ariel-frischer commented 9 months ago

Here is my wilder configuration for command line:

M = {}

local wilder = require "wilder"
local gradient = {
  '#f4468f', '#fd4a85', '#ff507a', '#ff566f', '#ff5e63',
  '#ff6658', '#ff704e', '#ff7a45', '#ff843d', '#ff9036',
  '#f89b31', '#efa72f', '#e6b32e', '#dcbe30', '#d2c934',
  '#c8d43a', '#bfde43', '#b6e84e', '#aff05b'
}

for i, fg in ipairs(gradient) do
  gradient[i] = wilder.make_hl('WilderGradient' .. i, 'Pmenu', { { a = 1 }, { a = 1 }, { foreground = fg } })
end

wilder.setup {
  modes = { ":", "/", "?" },
  next_key = "<Tab>",
  previous_key = "<S-Tab>",
  -- enable_cmdline_enter = true,
  -- accept_key = "<cr>",
  reject_key = "<s-cr>", -- <esc> twice runs the command so lets do this.
}

wilder.set_option("renderer", wilder.wildmenu_renderer { highlighter = wilder.basic_highlighter() })
-- Disable Python remote plugin
wilder.set_option('use_python_remote_plugin', 0)

wilder.set_option('pipeline', {
  wilder.branch(
    wilder.cmdline_pipeline({
      fuzzy = 1,
      fuzzy_filter = wilder.lua_fzy_filter(),
    }),
    wilder.vim_search_pipeline()
  )
})
wilder.set_option('renderer', wilder.renderer_mux({
  [':'] = wilder.popupmenu_renderer(
    wilder.popupmenu_palette_theme({
      -- 'single', 'double', 'rounded' or 'solid'
      -- can also be a list of 8 characters, see :h wilder#popupmenu_palette_theme() for more details
      border = 'rounded',
      max_height = '35%',         -- max height of the palette
      min_height = 0,             -- set to the same as 'max_height' for a fixed height window
      prompt_position = 'bottom', -- 'top' or 'bottom' to set the location of the prompt
      reverse = 0,                -- set to 1 to reverse the order of the list, use in combination with 'prompt_position'
      margin = '10%',             -- move towards bottom 10% of screen
      highlights = {
        gradient = gradient,
      },
      highlighter = wilder.highlighter_with_gradient({
        wilder.lua_fzy_highlighter(),
      }),
      left = { '', wilder.popupmenu_devicons() },
      right = { '', wilder.popupmenu_scrollbar() },
      -- top = { '', wilder.wildmenu_index() },
      -- pumblend = 20,
    })
  ),
  ['/'] = wilder.wildmenu_renderer({
    highlighter = wilder.lua_fzy_highlighter(),
  }),
}))

return M
ariel-frischer commented 9 months ago

If anyone has any other questions that are not actual issues/bugs you can ask here: https://github.com/ariel-frischer/bmessages.nvim/discussions

jqhr commented 9 months ago

Thanks. I just want the statusline's config