-- maintain cursor position after formatting loaded buffer
maintain_cursor_pos=false,
-- test flags: -count=1 will disable cache
test_flags={'-v'},
test_timeout='30s',
test_env={},
-- show test result with popup window
test_popup=true,
test_popup_auto_leave=false,
test_popup_width=80,
test_popup_height=10,
-- test open
test_open_cmd='edit',
-- struct tags
tags_name='json',
tags_options={'json=omitempty'},
tags_transform='snakecase',
tags_flags={'-skip-unexported'},
-- quick type
quick_type_flags={'--just-types'},
})
require("ibl").setup{
indent={char='┊'},
}
-- The setup config table shows all available config options with their default values:
require("presence").setup({
-- General options
auto_update=true,-- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
neovim_image_text="The One True Text Editor",-- Text displayed when hovered over the Neovim image
main_image="neovim",-- Main image display (either "neovim" or "file")
client_id="793271441293967371",-- Use your own Discord application client id (not recommended)
log_level=nil,-- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
debounce_timeout=10,-- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
enable_line_number=false,-- Displays the current line number instead of the current project
blacklist={},-- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
buttons=true,-- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
file_assets={},-- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
show_time=true,-- Show the timer
-- Rich Presence text options
editing_text="Editing %s",-- Format string rendered when an editable file is loaded in the buffer (either string or function(filename: string): string)
file_explorer_text="Browsing %s",-- Format string rendered when browsing a file explorer (either string or function(file_explorer_name: string): string)
git_commit_text="Committing changes",-- Format string rendered when committing changes in git (either string or function(filename: string): string)
plugin_manager_text="Managing plugins",-- Format string rendered when managing plugins (either string or function(plugin_manager_name: string): string)
reading_text="Reading %s",-- Format string rendered when a read-only or unmodifiable file is loaded in the buffer (either string or function(filename: string): string)
workspace_text="Working on %s",-- Format string rendered when in a git repository (either string or function(project_name: string|nil, filename: string): string)
line_number_text="Line %s out of %s",-- Format string rendered when `enable_line_number` is set to true (either string or function(line_number: number, line_count: number): string)
})
-- Lua
require('onedark').setup{
-- Main options --
style='dark',-- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
transparent=true,-- Show/hide background
term_colors=true,-- Change terminal color as per the selected theme style
ending_tildes=false,-- Show the end-of-buffer tildes. By default they are hidden
cmp_itemkind_reverse=false,-- reverse item kind highlights in cmp menu
-- toggle theme style ---
toggle_style_key=nil,-- keybind to toggle theme style. Leave it nil to disable it, or set it to a string, for example "<leader>ts"
toggle_style_list={'dark','darker','cool','deep','warm','warmer','light'},-- List of styles to toggle between
-- Change code style ---
-- Options are italic, bold, underline, none
-- You can configure multiple style with comma separated, For e.g., keywords = 'italic,bold'
code_style={
comments='italic',
keywords='none',
functions='none',
strings='none',
variables='none'
},
-- Lualine options --
lualine={
transparent=true,-- lualine center bar transparency
},
-- Custom Highlights --
colors={},-- Override default colors
highlights={},-- Override highlight groups
-- Plugins Config --
diagnostics={
darker=true,-- darker colors for diagnostic
undercurl=true,-- use undercurl instead of underline for diagnostics
background=true,-- use background color for virtual text
},
}
-- Eviline config for lualine
-- Author: shadmansaleh
-- Credit: glepnir
locallualine=require('lualine')
-- Color table for highlights
-- stylua: ignore
localcolors={
bg='#202328',
fg='#bbc2cf',
yellow='#ECBE7B',
cyan='#008080',
darkblue='#081633',
green='#98be65',
orange='#FF8800',
violet='#a9a1e1',
magenta='#c678dd',
blue='#51afef',
red='#ec5f67',
}
localconditions={
buffer_not_empty=function()
returnvim.fn.empty(vim.fn.expand('%:t'))~=1
end,
hide_in_width=function()
returnvim.fn.winwidth(0)>80
end,
check_git_workspace=function()
localfilepath=vim.fn.expand('%:p:h')
localgitdir=vim.fn.finddir('.git',filepath..';')
returngitdirand#gitdir>0and#gitdir<#filepath
end,
}
-- Config
localconfig={
options={
transparent=true,
-- Disable sections and component separators
component_separators='',
section_separators='',
theme={
-- We are going to use lualine_c an lualine_x as left and
-- right section. Both are highlighted by c theme . So we
-- are just setting default looks o statusline
normal={c={fg=colors.fg}},
inactive={c={fg=colors.fg}},
},
},
sections={
-- these are to remove the defaults
lualine_a={},
lualine_b={},
lualine_y={},
lualine_z={},
-- These will be filled later
lualine_c={},
lualine_x={},
},
inactive_sections={
-- these are to remove the defaults
lualine_a={},
lualine_b={},
lualine_y={},
lualine_z={},
lualine_c={},
lualine_x={},
},
}
-- Inserts a component in lualine_c at left section
localfunctionins_left(component)
table.insert(config.sections.lualine_c,component)
end
-- Inserts a component in lualine_x at right section
localfunctionins_right(component)
table.insert(config.sections.lualine_x,component)
end
ins_left{
function()
return'▊'
end,
color={fg=colors.blue},-- Sets highlighting of component
padding={left=0,right=1},-- We don't need space before this