This commit is contained in:
Jeff Lance 2022-07-18 17:36:58 +02:00
parent 91165a719a
commit de31ee2c56
22 changed files with 674 additions and 630 deletions

View File

@ -10,19 +10,18 @@
# to the user's home directory starting with `~/`. # to the user's home directory starting with `~/`.
# import: # import:
# - ~/.config/alacritty/panda.yml # - ~/.config/alacritty/panda.yml
# Any items in the `env` entry below will be added as # Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables # environment variables. Some entries may override variables
# set by alacritty itself. # set by alacritty itself.
#env: #env:
# TERM variable # TERM variable
# #
# This value is used to set the `$TERM` environment variable for # This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will # each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is # check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used. # available, otherwise `xterm-256color` is used.
#TERM: alacritty #TERM: alacritty
TERM: xterm-256color
window: window:
# Window dimensions (changes require restart) # Window dimensions (changes require restart)
# #
@ -32,7 +31,6 @@ window:
#dimensions: #dimensions:
# columns: 0 # columns: 0
# lines: 0 # lines: 0
# Window position (changes require restart) # Window position (changes require restart)
# #
# Specified in number of pixels. # Specified in number of pixels.
@ -40,7 +38,6 @@ window:
#position: #position:
# x: 0 # x: 0
# y: 0 # y: 0
# Window padding (changes require restart) # Window padding (changes require restart)
# #
# Blank space added around the window in pixels. This padding is scaled # Blank space added around the window in pixels. This padding is scaled
@ -48,10 +45,8 @@ window:
#padding: #padding:
# x: 0 # x: 0
# y: 0 # y: 0
# Spread additional padding evenly around the terminal content. # Spread additional padding evenly around the terminal content.
#dynamic_padding: false #dynamic_padding: false
# Window decorations # Window decorations
# #
# Values for `decorations`: # Values for `decorations`:
@ -74,7 +69,6 @@ window:
# Values for `startup_mode` (macOS only): # Values for `startup_mode` (macOS only):
# - SimpleFullscreen # - SimpleFullscreen
#startup_mode: Windowed #startup_mode: Windowed
# Window title # Window title
title: Alacritty title: Alacritty
@ -83,96 +77,81 @@ window:
# Window class (Linux/BSD only): # Window class (Linux/BSD only):
#class: #class:
# Application instance name # Application instance name
#instance: Alacritty #instance: Alacritty
# General application class # General application class
#general: Alacritty #general: Alacritty
# GTK theme variant (Linux/BSD only) # GTK theme variant (Linux/BSD only)
# #
# Override the variant of the GTK theme. Commonly supported values are `dark` # Override the variant of the GTK theme. Commonly supported values are `dark`
# and `light`. Set this to `None` to use the default theme variant. # and `light`. Set this to `None` to use the default theme variant.
gtk_theme_variant: dark gtk_theme_variant: dark
#scrolling: #scrolling:
# Maximum number of lines in the scrollback buffer. # Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling. # Specifying '0' will disable scrolling.
#history: 10000 #history: 10000
# Scrolling distance multiplier. # Scrolling distance multiplier.
#multiplier: 3 #multiplier: 3
# Font configuration
# Font configuration #font:
#font:
# Normal (roman) font face # Normal (roman) font face
#normal: #normal:
# Font family # Font family
# #
# Default: # Default:
# - (macOS) Menlo # - (macOS) Menlo
# - (Linux/BSD) monospace # - (Linux/BSD) monospace
# - (Windows) Consolas # - (Windows) Consolas
#family: monospace #family: monospace
# The `style` can be specified to pick a specific face.
# The `style` can be specified to pick a specific face. #style: Regular
#style: Regular
# Bold font face # Bold font face
#bold: #bold:
# Font family # Font family
# #
# If the bold family is not specified, it will fall back to the # If the bold family is not specified, it will fall back to the
# value specified for the normal font. # value specified for the normal font.
#family: monospace #family: monospace
# The `style` can be specified to pick a specific face.
# The `style` can be specified to pick a specific face. #style: Bold
#style: Bold
# Italic font face # Italic font face
#italic: #italic:
# Font family # Font family
# #
# If the italic family is not specified, it will fall back to the # If the italic family is not specified, it will fall back to the
# value specified for the normal font. # value specified for the normal font.
#family: monospace #family: monospace
# The `style` can be specified to pick a specific face.
# The `style` can be specified to pick a specific face. #style: Italic
#style: Italic
# Bold italic font face # Bold italic font face
#bold_italic: #bold_italic:
# Font family # Font family
# #
# If the bold italic family is not specified, it will fall back to the # If the bold italic family is not specified, it will fall back to the
# value specified for the normal font. # value specified for the normal font.
#family: monospace #family: monospace
# The `style` can be specified to pick a specific face.
# The `style` can be specified to pick a specific face. #style: Bold Italic
#style: Bold Italic
# Point size # Point size
#size: 11.0 #size: 11.0
# Offset is the extra space around each character. `offset.y` can be thought # Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter # of as modifying the line spacing, and `offset.x` as modifying the letter
# spacing. # spacing.
#offset: #offset:
# x: 0 # x: 0
# y: 0 # y: 0
# Glyph offset determines the locations of the glyphs within their cells with # Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increasing `x` moves the glyph to the # the default being at the bottom. Increasing `x` moves the glyph to the
# right, increasing `y` moves the glyph upward. # right, increasing `y` moves the glyph upward.
#glyph_offset: #glyph_offset:
# x: 0 # x: 0
# y: 0 # y: 0
# Thin stroke font rendering (macOS only) # Thin stroke font rendering (macOS only)
# #
# Thin strokes are suitable for retina displays, but for non-retina screens # Thin strokes are suitable for retina displays, but for non-retina screens
# it is recommended to set `use_thin_strokes` to `false`. # it is recommended to set `use_thin_strokes` to `false`.
#use_thin_strokes: true #use_thin_strokes: true
# Background opacity # Background opacity
# #
# Window opacity as a floating point number from `0.0` to `1.0`. # Window opacity as a floating point number from `0.0` to `1.0`.
@ -181,193 +160,79 @@ window:
# If `true`, bold text is drawn using the bright color variants. # If `true`, bold text is drawn using the bright color variants.
#draw_bold_text_with_bright_colors: false #draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night) # Colors (Tomorrow Night)
colors: colors:
# Default colors name: astromouse
author: ""
primary: primary:
background: '#000000' background: "#000000"
foreground: '#c5c8c6' foreground: "#ffffff"
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not
# present. If the bright foreground color is not set, or
# `draw_bold_text_with_bright_colors` is `false`, the normal foreground
# color will be used.
dim_foreground: '#828482'
bright_foreground: '#eaeaea'
# Cursor colors
#
# Colors which should be used to draw the terminal cursor.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
cursor: cursor:
text: CellBackground text: "#000000"
cursor: CellForeground cursor: "#ffffff"
# Vi mode cursor colors
#
# Colors for the cursor when the vi mode is active.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
vi_mode_cursor:
text: CellBackground
cursor: CellForeground
# Search colors
#
# Colors used for the search bar and match highlighting.
search:
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
matches:
foreground: '#000000'
background: '#ffffff'
focused_match:
foreground: '#ffffff'
background: '#000000'
bar:
background: '#c5c8c6'
foreground: '#1d1f21'
# Keyboard regex hints
hints:
# First character in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
start:
foreground: '#1d1f21'
background: '#e9ff5e'
# All characters after the first one in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
end:
foreground: '#e9ff5e'
background: '#1d1f21'
# Line indicator
#
# Color used for the indicator displaying the position in history during
# search and vi mode.
#
# By default, these will use the opposing primary color.
line_indicator:
foreground: None
background: None
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
selection:
text: CellBackground
background: CellForeground
# Normal colors
normal: normal:
black: '#1d1f21' black: "#1c1c1c"
red: '#cc6666' red: "#d770af"
green: '#b5bd68' green: "#9acc79"
yellow: '#f0c674' yellow: "#d0d26b"
blue: '#81a2be' blue: "#77b6c5"
magenta: '#b294bb' magenta: "#a488d9"
cyan: '#8abeb7' cyan: "#7fcab3"
white: '#c5c8c6' white: "#8d8d8d"
# Bright colors
bright: bright:
black: '#666666' black: "#3d3a3a"
red: '#d54e53' red: "#d28abf"
green: '#b9ca4a' green: "#8fb676"
yellow: '#e7c547' yellow: "#c8bc45"
blue: '#7aa6da' blue: "#8fa7b9"
magenta: '#c397d8' magenta: "#bd89de"
cyan: '#70c0b1' cyan: "#6ec2a8"
white: '#eaeaea' white: "#dad3d3"
# Dim colors
#
# If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors.
dim:
black: '#131415'
red: '#864343'
green: '#777c44'
yellow: '#9e824c'
blue: '#556a7d'
magenta: '#75617b'
cyan: '#5b7d78'
white: '#828482'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '#ff00ff' }`
#
indexed_colors: [] indexed_colors: []
# Bell # Bell
# #
# The bell is rung every time the BEL control character is received. # The bell is rung every time the BEL control character is received.
#bell: #bell:
# Visual Bell Animation # Visual Bell Animation
# #
# Animation effect for flashing the screen when the visual bell is rung. # Animation effect for flashing the screen when the visual bell is rung.
# #
# Values for `animation`: # Values for `animation`:
# - Ease # - Ease
# - EaseOut # - EaseOut
# - EaseOutSine # - EaseOutSine
# - EaseOutQuad # - EaseOutQuad
# - EaseOutCubic # - EaseOutCubic
# - EaseOutQuart # - EaseOutQuart
# - EaseOutQuint # - EaseOutQuint
# - EaseOutExpo # - EaseOutExpo
# - EaseOutCirc # - EaseOutCirc
# - Linear # - Linear
#animation: EaseOutExpo #animation: EaseOutExpo
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will # disable the visual bell animation.
# disable the visual bell animation. #duration: 0
#duration: 0 # Visual bell animation color.
#color: '#ffffff'
# Visual bell animation color. # Bell Command
#color: '#ffffff' #
# This program is executed whenever the bell is rung.
# Bell Command #
# # When set to `command: None`, no command will be executed.
# This program is executed whenever the bell is rung. #
# # Example:
# When set to `command: None`, no command will be executed. # command:
# # program: notify-send
# Example: # args: ["Hello, World!"]
# command: #
# program: notify-send #command: None
# args: ["Hello, World!"]
#
#command: None
#selection: #selection:
# This string contains all characters that are used as separators for # This string contains all characters that are used as separators for
# "semantic words" in Alacritty. # "semantic words" in Alacritty.
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to the primary clipboard.
# When set to `true`, selected text will be copied to the primary clipboard. #save_to_clipboard: false
#save_to_clipboard: false
cursor: cursor:
# Cursor style # Cursor style
style: style:
@ -387,7 +252,6 @@ cursor:
# - On: Enable blinking by default # - On: Enable blinking by default
# - Always: Force the cursor to always blink # - Always: Force the cursor to always blink
blinking: On blinking: On
# Vi mode cursor style # Vi mode cursor style
# #
# If the vi mode cursor style is `None` or not specified, it will fall back to # If the vi mode cursor style is `None` or not specified, it will fall back to
@ -395,18 +259,14 @@ cursor:
# #
# See `cursor.style` for available options. # See `cursor.style` for available options.
#vi_mode_style: None #vi_mode_style: None
# Cursor blinking interval in milliseconds. # Cursor blinking interval in milliseconds.
#blink_interval: 750 #blink_interval: 750
# If this is `true`, the cursor will be rendered as a hollow box when the # If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused. # window is not focused.
#unfocused_hollow: true #unfocused_hollow: true
# Thickness of the cursor relative to the cell width as floating point number # Thickness of the cursor relative to the cell width as floating point number
# from `0.0` to `1.0`. # from `0.0` to `1.0`.
#thickness: 0.15 #thickness: 0.15
# Live config reload (changes require restart) # Live config reload (changes require restart)
live_config_reload: true live_config_reload: true
@ -424,72 +284,65 @@ live_config_reload: true
# program: /bin/bash # program: /bin/bash
# args: # args:
# - --login # - --login
# Startup directory # Startup directory
# #
# Directory the shell is started in. If this is unset, or `None`, the working # Directory the shell is started in. If this is unset, or `None`, the working
# directory of the parent process will be used. # directory of the parent process will be used.
#working_directory: None #working_directory: None
# Send ESC (\x1b) before characters when alt is pressed. # Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true #alt_send_esc: true
#mouse: #mouse:
# Click settings # Click settings
# #
# The `double_click` and `triple_click` settings control the time # The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double # alacritty should wait for accepting multiple clicks as one double
# or triple click. # or triple click.
#double_click: { threshold: 300 } #double_click: { threshold: 300 }
#triple_click: { threshold: 300 } #triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
# If this is `true`, the cursor is temporarily hidden when typing. #hide_when_typing: false
#hide_when_typing: false
# Regex hints # Regex hints
# #
# Terminal hints can be used to find text in the visible part of the terminal # Terminal hints can be used to find text in the visible part of the terminal
# and pipe it to other applications. # and pipe it to other applications.
#hints: #hints:
# Keys used for the hint labels. # Keys used for the hint labels.
#alphabet: "jfkdls;ahgurieowpq" #alphabet: "jfkdls;ahgurieowpq"
# List with all available hints
# List with all available hints #
# # Each hint must have a `regex` and either an `action` or a `command` field.
# Each hint must have a `regex` and either an `action` or a `command` field. # The fields `mouse`, `binding` and `post_processing` are optional.
# The fields `mouse`, `binding` and `post_processing` are optional. #
# # The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and
# The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and # `mouse.mods` accept the same values as they do in the `key_bindings` section.
# `mouse.mods` accept the same values as they do in the `key_bindings` section. #
# # The `mouse.enabled` field controls if the hint should be underlined while
# The `mouse.enabled` field controls if the hint should be underlined while # the mouse with all `mouse.mods` keys held or the vi mode cursor is above it.
# the mouse with all `mouse.mods` keys held or the vi mode cursor is above it. #
# # If the `post_processing` field is set to `true`, heuristics will be used to
# If the `post_processing` field is set to `true`, heuristics will be used to # shorten the match if there are characters likely not to be part of the hint
# shorten the match if there are characters likely not to be part of the hint # (e.g. a trailing `.`). This is most useful for URIs.
# (e.g. a trailing `.`). This is most useful for URIs. #
# # Values for `action`:
# Values for `action`: # - Copy
# - Copy # Copy the hint's text to the clipboard.
# Copy the hint's text to the clipboard. # - Paste
# - Paste # Paste the hint's text to the terminal or search.
# Paste the hint's text to the terminal or search. # - Select
# - Select # Select the hint's text.
# Select the hint's text. # - MoveViModeCursor
# - MoveViModeCursor # Move the vi mode cursor to the beginning of the hint.
# Move the vi mode cursor to the beginning of the hint. #enabled:
#enabled: # - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
# - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ # [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
# [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" # command: xdg-open
# command: xdg-open # post_processing: true
# post_processing: true # mouse:
# mouse: # enabled: true
# enabled: true # mods: None
# mods: None # binding:
# binding: # key: U
# key: U # mods: Control|Shift
# mods: Control|Shift
# Mouse bindings # Mouse bindings
# #
# Mouse bindings are specified as a list of objects, much like the key # Mouse bindings are specified as a list of objects, much like the key
@ -515,7 +368,6 @@ live_config_reload: true
# - `mods` (see key bindings) # - `mods` (see key bindings)
#mouse_bindings: #mouse_bindings:
# - { mouse: Middle, action: PasteSelection } # - { mouse: Middle, action: PasteSelection }
# Key bindings # Key bindings
# #
# Key bindings are specified as a list of objects. For example, this is the # Key bindings are specified as a list of objects. For example, this is the
@ -721,127 +573,118 @@ live_config_reload: true
# If the same trigger is assigned to multiple actions, all of them are executed # If the same trigger is assigned to multiple actions, all of them are executed
# in the order they were defined in. # in the order they were defined in.
#key_bindings: #key_bindings:
#- { key: Paste, action: Paste } #- { key: Paste, action: Paste }
#- { key: Copy, action: Copy } #- { key: Copy, action: Copy }
#- { key: L, mods: Control, action: ClearLogNotice } #- { key: L, mods: Control, action: ClearLogNotice }
#- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } #- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# Vi Mode
# Vi Mode #- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
#- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } #- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
#- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } #- { key: Escape, mode: Vi|~Search, action: ClearSelection }
#- { key: Escape, mode: Vi|~Search, action: ClearSelection } #- { key: I, mode: Vi|~Search, action: ToggleViMode }
#- { key: I, mode: Vi|~Search, action: ToggleViMode } #- { key: I, mode: Vi|~Search, action: ScrollToBottom }
#- { key: I, mode: Vi|~Search, action: ScrollToBottom } #- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
#- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode } #- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
#- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp } #- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
#- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown } #- { key: G, mode: Vi|~Search, action: ScrollToTop }
#- { key: G, mode: Vi|~Search, action: ScrollToTop } #- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
#- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom } #- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
#- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp } #- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
#- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown } #- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
#- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp } #- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
#- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown } #- { key: Y, mode: Vi|~Search, action: Copy }
#- { key: Y, mode: Vi|~Search, action: Copy } #- { key: Y, mode: Vi|~Search, action: ClearSelection }
#- { key: Y, mode: Vi|~Search, action: ClearSelection } #- { key: Copy, mode: Vi|~Search, action: ClearSelection }
#- { key: Copy, mode: Vi|~Search, action: ClearSelection } #- { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
#- { key: V, mode: Vi|~Search, action: ToggleNormalSelection } #- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
#- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection } #- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
#- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } #- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
#- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } #- { key: Return, mode: Vi|~Search, action: Open }
#- { key: Return, mode: Vi|~Search, action: Open } #- { key: K, mode: Vi|~Search, action: Up }
#- { key: K, mode: Vi|~Search, action: Up } #- { key: J, mode: Vi|~Search, action: Down }
#- { key: J, mode: Vi|~Search, action: Down } #- { key: H, mode: Vi|~Search, action: Left }
#- { key: H, mode: Vi|~Search, action: Left } #- { key: L, mode: Vi|~Search, action: Right }
#- { key: L, mode: Vi|~Search, action: Right } #- { key: Up, mode: Vi|~Search, action: Up }
#- { key: Up, mode: Vi|~Search, action: Up } #- { key: Down, mode: Vi|~Search, action: Down }
#- { key: Down, mode: Vi|~Search, action: Down } #- { key: Left, mode: Vi|~Search, action: Left }
#- { key: Left, mode: Vi|~Search, action: Left } #- { key: Right, mode: Vi|~Search, action: Right }
#- { key: Right, mode: Vi|~Search, action: Right } #- { key: Key0, mode: Vi|~Search, action: First }
#- { key: Key0, mode: Vi|~Search, action: First } #- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last }
#- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last } #- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
#- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied } #- { key: H, mods: Shift, mode: Vi|~Search, action: High }
#- { key: H, mods: Shift, mode: Vi|~Search, action: High } #- { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
#- { key: M, mods: Shift, mode: Vi|~Search, action: Middle } #- { key: L, mods: Shift, mode: Vi|~Search, action: Low }
#- { key: L, mods: Shift, mode: Vi|~Search, action: Low } #- { key: B, mode: Vi|~Search, action: SemanticLeft }
#- { key: B, mode: Vi|~Search, action: SemanticLeft } #- { key: W, mode: Vi|~Search, action: SemanticRight }
#- { key: W, mode: Vi|~Search, action: SemanticRight } #- { key: E, mode: Vi|~Search, action: SemanticRightEnd }
#- { key: E, mode: Vi|~Search, action: SemanticRightEnd } #- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
#- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft } #- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
#- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight } #- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
#- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd } #- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket }
#- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket } #- { key: Slash, mode: Vi|~Search, action: SearchForward }
#- { key: Slash, mode: Vi|~Search, action: SearchForward } #- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
#- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward } #- { key: N, mode: Vi|~Search, action: SearchNext }
#- { key: N, mode: Vi|~Search, action: SearchNext } #- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious }
#- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } # Search Mode
#- { key: Return, mode: Search|Vi, action: SearchConfirm }
# Search Mode #- { key: Escape, mode: Search, action: SearchCancel }
#- { key: Return, mode: Search|Vi, action: SearchConfirm } #- { key: C, mods: Control, mode: Search, action: SearchCancel }
#- { key: Escape, mode: Search, action: SearchCancel } #- { key: U, mods: Control, mode: Search, action: SearchClear }
#- { key: C, mods: Control, mode: Search, action: SearchCancel } #- { key: W, mods: Control, mode: Search, action: SearchDeleteWord }
#- { key: U, mods: Control, mode: Search, action: SearchClear } #- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious }
#- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } #- { key: N, mods: Control, mode: Search, action: SearchHistoryNext }
#- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } #- { key: Up, mode: Search, action: SearchHistoryPrevious }
#- { key: N, mods: Control, mode: Search, action: SearchHistoryNext } #- { key: Down, mode: Search, action: SearchHistoryNext }
#- { key: Up, mode: Search, action: SearchHistoryPrevious } #- { key: Return, mode: Search|~Vi, action: SearchFocusNext }
#- { key: Down, mode: Search, action: SearchHistoryNext } #- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious }
#- { key: Return, mode: Search|~Vi, action: SearchFocusNext } # (Windows, Linux, and BSD only)
#- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } #- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
#- { key: C, mods: Control|Shift, action: Copy }
# (Windows, Linux, and BSD only) #- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward }
#- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste } #- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward }
#- { key: C, mods: Control|Shift, action: Copy } #- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection }
#- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward } #- { key: Insert, mods: Shift, action: PasteSelection }
#- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward } #- { key: Key0, mods: Control, action: ResetFontSize }
#- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection } #- { key: Equals, mods: Control, action: IncreaseFontSize }
#- { key: Insert, mods: Shift, action: PasteSelection } #- { key: Plus, mods: Control, action: IncreaseFontSize }
#- { key: Key0, mods: Control, action: ResetFontSize } #- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
#- { key: Equals, mods: Control, action: IncreaseFontSize } #- { key: Minus, mods: Control, action: DecreaseFontSize }
#- { key: Plus, mods: Control, action: IncreaseFontSize } #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
#- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } # (Windows only)
#- { key: Minus, mods: Control, action: DecreaseFontSize } #- { key: Return, mods: Alt, action: ToggleFullscreen }
#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } # (macOS only)
#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
# (Windows only) #- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
#- { key: Return, mods: Alt, action: ToggleFullscreen } #- { key: Key0, mods: Command, action: ResetFontSize }
#- { key: Equals, mods: Command, action: IncreaseFontSize }
# (macOS only) #- { key: Plus, mods: Command, action: IncreaseFontSize }
#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } #- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
#- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory } #- { key: Minus, mods: Command, action: DecreaseFontSize }
#- { key: Key0, mods: Command, action: ResetFontSize } #- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
#- { key: Equals, mods: Command, action: IncreaseFontSize } #- { key: V, mods: Command, action: Paste }
#- { key: Plus, mods: Command, action: IncreaseFontSize } #- { key: C, mods: Command, action: Copy }
#- { key: NumpadAdd, mods: Command, action: IncreaseFontSize } #- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
#- { key: Minus, mods: Command, action: DecreaseFontSize } #- { key: H, mods: Command, action: Hide }
#- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize } #- { key: H, mods: Command|Alt, action: HideOtherApplications }
#- { key: V, mods: Command, action: Paste } #- { key: M, mods: Command, action: Minimize }
#- { key: C, mods: Command, action: Copy } #- { key: Q, mods: Command, action: Quit }
#- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection } #- { key: W, mods: Command, action: Quit }
#- { key: H, mods: Command, action: Hide } #- { key: N, mods: Command, action: SpawnNewInstance }
#- { key: H, mods: Command|Alt, action: HideOtherApplications } #- { key: F, mods: Command|Control, action: ToggleFullscreen }
#- { key: M, mods: Command, action: Minimize } #- { key: F, mods: Command, mode: ~Search, action: SearchForward }
#- { key: Q, mods: Command, action: Quit } #- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
#- { key: W, mods: Command, action: Quit }
#- { key: N, mods: Command, action: SpawnNewInstance }
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
#- { key: F, mods: Command, mode: ~Search, action: SearchForward }
#- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
# Colorscheme # Colorscheme
import: import:
- ~/.config/alacritty/panda.yml - ~/.config/alacritty/panda.yml
#debug:
#debug:
# Display the time it takes to redraw each frame. # Display the time it takes to redraw each frame.
#render_timer: false #render_timer: false
# Keep the log file after quitting Alacritty. # Keep the log file after quitting Alacritty.
#persistent_logging: false #persistent_logging: false
# Log level # Log level
# #
# Values for `log_level`: # Values for `log_level`:
@ -852,6 +695,6 @@ import:
# - Debug # - Debug
# - Trace # - Trace
#log_level: Warn #log_level: Warn
# Print all received window events. # Print all received window events.
#print_events: false #print_events: false
theme: Astromouse

View File

@ -81,8 +81,9 @@ sticker_file "/home/jeff/.config/mpd/sticker.sql"
# activation is in use. # activation is in use.
# #
# For network # For network
bind_to_address "localhost" #bind_to_address "localhost"
# bind_to_address "127.0.0.1" bind_to_address "127.0.0.1"
bind_to_address "192.168.0.1"
# #
# And for Unix Socket # And for Unix Socket
# bind_to_address "/home/jeff/.config/mpd/socket" # bind_to_address "/home/jeff/.config/mpd/socket"

View File

@ -214,8 +214,8 @@ song_library_format "{%n > }{%t}|{%f}"
# #
#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D} #alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
# #
#now_playing_prefix = $b now_playing_prefix = "$2$9$2"
now_playing_prefix = " $2♫$9$2" # now_playing_prefix = " $2♫$9$2"
# #
#now_playing_suffix = $/b #now_playing_suffix = $/b
now_playing_suffix = "$9" now_playing_suffix = "$9"
@ -283,7 +283,7 @@ browser_playlist_prefix = "$2playlist »$9 "
## ##
# #
#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l} #song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
song_columns_list_format = (4)[]{: } (20)[]{a:Artiste} (6f)[white]{nE:Piste} (50)[white]{t|f:Titre} (20)[white]{b} (7f)[red]{l:Durée} song_columns_list_format = (4)[]{: } (20)[]{a:Artiste} (50)[white]{t|f:Titre} (6f)[white]{nE:Piste} (20)[white]{b} (7f)[red]{l:Durée}
# #
##### various settings ##### ##### various settings #####
# #

View File

@ -0,0 +1,8 @@
{
"languageserver": {
"digestif": {
"command": "~/bin/digestif",
"filetypes": ["tex", "plaintex", "context"]
}
}
}

153
conf.d/nvim/coc.vim Normal file
View File

@ -0,0 +1,153 @@
" File : coc.vim
" Author : Jeff LANCE <email@jefflance.me>
" Date : 03.03.2021
" Last Modified Date: 03.03.2021
" Last Modified By : Jeff LANCE <email@jefflance.me>
"""""""""""""""""""""
" ____ ___ ____
" / ___/ _ \ / ___|
" | | | | | | |
" | |__| |_| | |___
" \____\___/ \____|
"
"""""""""""""""""""""
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" Use <c-space> to trigger completion.
if has('nvim')
inoremap <silent><expr> <c-space> coc#refresh()
else
inoremap <silent><expr> <c-@> coc#refresh()
endif
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" Use `[g` and `]g` to navigate diagnostics
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
nmap <silent> [g <Plug>(coc-diagnostic-prev)
nmap <silent> ]g <Plug>(coc-diagnostic-next)
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
elseif (coc#rpc#ready())
call CocActionAsync('doHover')
else
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')
" Symbol renaming.
nmap <leader>rn <Plug>(coc-rename)
" Formatting selected code.
xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
" Update signature help on jump placeholder.
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end
" Applying codeAction to the selected region.
" Example: `<leader>aap` for current paragraph
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)
" Remap keys for applying codeAction to the current buffer.
nmap <leader>ac <Plug>(coc-codeaction)
" Apply AutoFix to problem on the current line.
nmap <leader>qf <Plug>(coc-fix-current)
" Map function and class text objects
" NOTE: Requires 'textDocument.documentSymbol' support from the language server.
xmap if <Plug>(coc-funcobj-i)
omap if <Plug>(coc-funcobj-i)
xmap af <Plug>(coc-funcobj-a)
omap af <Plug>(coc-funcobj-a)
xmap ic <Plug>(coc-classobj-i)
omap ic <Plug>(coc-classobj-i)
xmap ac <Plug>(coc-classobj-a)
omap ac <Plug>(coc-classobj-a)
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
" Use CTRL-S for selections ranges.
" Requires 'textDocument/selectionRange' support of language server.
nmap <silent> <C-s> <Plug>(coc-range-select)
xmap <silent> <C-s> <Plug>(coc-range-select)
" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocAction('format')
" Add `:Fold` command to fold current buffer.
command! -nargs=? Fold :call CocAction('fold', <f-args>)
" Add `:OR` command for organize imports of the current buffer.
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
" Add (Neo)Vim's native statusline support.
" NOTE: Please see `:h coc-status` for integrations with external plugins that
" provide custom statusline: lightline.vim, vim-airline.
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
" Mappings for CoCList
" Show all diagnostics.
nnoremap <silent><nowait> <space>a :<C-u>CocList diagnostics<cr>
" Manage extensions.
nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr>
" Show commands.
nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr>
" Find symbol of current document.
nnoremap <silent><nowait> <space>o :<C-u>CocList outline<cr>
" Search workspace symbols.
nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
" Do default action for next item.
nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR>
" Do default action for previous item.
nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR>
" Resume latest coc list.
nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR>
" vim:ft=vim

55
conf.d/nvim/dashboard.lua Normal file
View File

@ -0,0 +1,55 @@
local home = os.getenv('HOME')
local db = require('dashboard')
-- db.custom_header -- type can be nil,table or function(must be return table in function)
-- if not config will use default banner
-- db.custom_center -- table type and in this table you can set icon,desc,shortcut,action keywords. desc must be exist and type is string
-- icon type is nil or string
-- shortcut type is nil or string also like icon
-- action type can be string or function or nil.
-- if you don't need any one of icon shortcut action ,you can ignore it.
-- db.custom_footer -- type can be nil,table or function(must be return table in function)
-- db.preview_file_Path -- string or function type that mean in function you can dynamic generate height width
-- db.preview_file_height -- number type
-- db.preview_file_width -- number type
-- db.preview_command -- string type
-- db.hide_statusline -- boolean default is true.it will hide statusline in dashboard buffer and auto open in other buffer
-- db.hide_tabline -- boolean default is true.it will hide tabline in dashboard buffer and auto open in other buffer
-- db.session_directory -- string type the directory to store the session file
-- db.header_pad -- number type default is 1
-- db.center_pad -- number type default is 1
-- db.footer_pad -- number type default is 1
local dotfiles = home .. '/dotfiles'
db.custom_center = {
{
icon = nil,
desc = 'Nouveau fichier ',
action = 'DashboardNewFile',
shortcut = 'SPC f n'
},
{
desc = 'Trouver un fichier ',
action = "lua require('telescope.builtin').find_files()",
shortcut = 'SPC f f'
},
{
desc = 'Fichiers récemment ouverts ',
action = 'DashboardFindHistory',
shortcut = 'SPC f h'
},
{
desc = 'Parcourir les dotfiles ',
action = "lua require('telescope.builtin').find_files({" .. dotfiles .. "})",
-- action = 'Telescope dotfiles path=' .. home .. '/dotfiles',
shortcut = 'SPC f d'
}
}
-- Highlight Group
-- DashboardHeader DashboardCenter DashboardCenterIcon DashboardShortCut DashboardFooter
-- Command
-- DashboardNewFile -- if you like use `enew` to create file,Please use this command,it's wrap enew and restore the statsuline and tabline
-- SessionSave,SessionLoad

44
conf.d/nvim/ddc.vim Normal file
View File

@ -0,0 +1,44 @@
" Customize global settings
" Use around source.
" https://github.com/Shougo/ddc-around
call ddc#custom#patch_global('sources', ['around'])
" Use matcher_head and sorter_rank.
" https://github.com/Shougo/ddc-matcher_head
" https://github.com/Shougo/ddc-sorter_rank
call ddc#custom#patch_global('sourceOptions', {
\ '_': {
\ 'matchers': ['matcher_head'],
\ 'sorters': ['sorter_rank']},
\ })
" Change source options
call ddc#custom#patch_global('sourceOptions', {
\ 'around': {'mark': 'A'},
\ })
call ddc#custom#patch_global('sourceParams', {
\ 'around': {'maxSize': 500},
\ })
" Customize settings on a filetype
call ddc#custom#patch_filetype(['c', 'cpp'], 'sources', ['around', 'clangd'])
call ddc#custom#patch_filetype(['c', 'cpp'], 'sourceOptions', {
\ 'clangd': {'mark': 'C'},
\ })
call ddc#custom#patch_filetype('markdown', 'sourceParams', {
\ 'around': {'maxSize': 100},
\ })
" Mappings
" <TAB>: completion.
inoremap <silent><expr> <TAB>
\ ddc#map#pum_visible() ? '<C-n>' :
\ (col('.') <= 1 <Bar><Bar> getline('.')[col('.') - 2] =~# '\s') ?
\ '<TAB>' : ddc#map#manual_complete()
" <S-TAB>: completion back.
inoremap <expr><S-TAB> ddc#map#pum_visible() ? '<C-p>' : '<C-h>'
" Use ddc.
call ddc#enable()

56
conf.d/nvim/ddu.vim Normal file
View File

@ -0,0 +1,56 @@
" You must set the default ui.
" Note: ff ui
" https://github.com/Shougo/ddu-ui-ff
call ddu#custom#patch_global({
\ 'ui': 'ff',
\ })
" You must set the default action.
" Note: file kind
" https://github.com/Shougo/ddu-kind-file
call ddu#custom#patch_global({
\ 'kindOptions': {
\ 'file': {
\ 'defaultAction': 'open',
\ },
\ }
\ })
" Specify matcher.
" Note: matcher_substring filter
" https://github.com/Shougo/ddu-filter-matcher_substring
call ddu#custom#patch_global({
\ 'sourceOptions': {
\ '_': {
\ 'matchers': ['matcher_substring'],
\ },
\ }
\ })
" Set default sources
" Note: file source
" https://github.com/Shougo/ddu-source-file
"call ddu#custom#patch_global({
" \ 'sources': [{'name': 'file', 'params': {}}],
" \ })
" Call default sources
"call ddu#start({})
" Set name specific configuration
"call ddu#custom#patch_local('files', {
" \ 'sources': [
" \ {'name': 'file', 'params': {}},
" \ {'name': 'file_old', 'params': {}},
" \ ],
" \ })
" Specify name
"call ddu#start({'name': 'files'})
" Specify source with params
" Note: file_rec source
" https://github.com/Shougo/ddu-source-file_rec
"call ddu#start({'sources': [
" \ {'name': 'file_rec', 'params': {'path': expand('~')}}
" \ ]})

5
conf.d/nvim/devicons.lua Normal file
View File

@ -0,0 +1,5 @@
require'nvim-web-devicons'.setup {
-- globally enable default icons (default to false)
-- will get overriden by `get_icons` option
default = true;
}

View File

@ -302,7 +302,7 @@ source ${HOME}/.config/nvim/plug.vim
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * autocmd VimEnter *
\ if (argc() == 0 && !exists("s:std_in") && !has('gui')) \ if (argc() == 0 && !exists("s:std_in") && !has('gui'))
\ | Dashboard " \ | Dashboard
\ | endif \ | endif
" " needed so deoplete can auto select the first suggestion " " needed so deoplete can auto select the first suggestion
@ -401,9 +401,9 @@ function! g:BuffetSetCustomColors()
" ----- " -----
lua <<EOF lua <<EOF
local artify = require( 'artify' ) local artify = require 'artify'
artify('if', 'italic') artify('if', 'italic')
artify('let', 'bold') artify('let', 'italic')
EOF EOF
" ----- " -----
@ -460,61 +460,26 @@ autocmd FileType toml setlocal commentstring=#\ %s
" Dashboard {{{ " Dashboard {{{
" ----- " -----
let g:dashboard_custom_shortcut={ source ${HOME}/.config/nvim/dashboard.lua
\ 'last_session' : 'SPC s l',
\ 'find_history' : 'SPC f h',
\ 'find_file' : 'SPC f f',
\ 'new_file' : 'SPC c n',
\ 'change_colorscheme' : 'SPC t c',
\ 'find_word' : 'SPC f a',
\ 'book_marks' : 'SPC f b',
\ }
let g:dashboard_default_executive ='fzf'
" ----- " -----
" }}} " }}}
" Defx {{{ " DDC/DDU {{{
" ----- " -----
" Set appearance source ${HOME}/.config/nvim/ddc.vim
call defx#custom#option( source ${HOME}/.config/nvim/ddu.vim
\ '_', {
\ 'winwidth': 40,
\ 'split': 'vertical',
\ 'direction': 'botright',
\ 'show_ignored_files': 0,
\ 'buffer_name': 'defxplorer',
\ 'toggle': 1,
\ 'columns': 'icon:indent:icons:filename',
\ 'resume': 1,
\ }
\ )
call defx#custom#column(
\ 'icon', {
\ 'directory_icon': '▸',
\ 'opened_icon': '▾',
\ }
\ )
call defx#custom#column(
\ 'mark', {
\ 'readonly_icon': '✗',
\ 'selected_icon': '✓',
\ }
\ )
" ----- " -----
" }}} " }}}
" Deoplete {{{ " Devicons {{{
" ----- " -----
let g:deoplete#enable_at_startup = 0 source ${HOME}/.config/nvim/devicons.lua
" ----- " -----
" }}} " }}}
@ -535,28 +500,6 @@ au FileType tex let b:EditorConfig_disable = 1
" }}} " }}}
" FZF {{{
" -----
" This is the default extra key bindings
let g:fzf_action = {
\ 'enter': 'e',
\ 'ctrl-h': 'split',
\ 'ctrl-v': 'vsplit'
\ }
" Preview window
let g:fzf_preview_window = 'right:60%'
if !exists('g:fzf_layout')
autocmd! FileType fzf
autocmd FileType fzf set laststatus=0 noshowmode noruler
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
endif
" -----
" }}}
" Header {{{ " Header {{{
" ----- " -----

View File

@ -90,7 +90,7 @@ map <C-l> :call WinMove('l')<cr>
nmap <Leader>ss :<C-u>SessionSave<CR> nmap <Leader>ss :<C-u>SessionSave<CR>
nmap <Leader>sl :<C-u>SessionLoad<CR> nmap <Leader>sl :<C-u>SessionLoad<CR>
nnoremap <silent> <Leader>fh :DashboardFindHistory<CR> nnoremap <silent> <Leader>fh :DashboardFindHistory<CR>
nnoremap <silent> <Leader>ff :DashboardFindFile<CR> nnoremap <silent> <Leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
nnoremap <silent> <Leader>tc :DashboardChangeColorscheme<CR> nnoremap <silent> <Leader>tc :DashboardChangeColorscheme<CR>
nnoremap <silent> <Leader>fa :DashboardFindWord<CR> nnoremap <silent> <Leader>fa :DashboardFindWord<CR>
nnoremap <silent> <Leader>fb :DashboardJumpMark<CR> nnoremap <silent> <Leader>fb :DashboardJumpMark<CR>
@ -100,96 +100,10 @@ nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
" }}} " }}}
" Defx {{{ " Find file {{{
" ----- " -----
map <silent> <f3> :Defx<cr> map <C-f> <cmd>lua require('telescope.builtin').find_files()<cr>
function! s:defx_toggle_tree() abort
" Open current file, or toggle directory expand/collapse
if defx#is_directory()
return defx#do_action('open_or_close_tree')
endif
return defx#do_action('drop')
endfunction
autocmd FileType defx call s:defx_my_settings()
function! s:defx_my_settings() abort
" Define mappings
" nnoremap <silent><buffer><expr> <CR> defx#do_action('drop')
nnoremap <silent><buffer><expr> <cr>
\ defx#is_directory() ?
\ defx#do_action('open_directory') :
\ defx#do_action('multi', ['drop', 'quit'])
nnoremap <silent><buffer><expr> c
\ defx#do_action('copy')
nnoremap <silent><buffer><expr> m
\ defx#do_action('move')
nnoremap <silent><buffer><expr> p
\ defx#do_action('paste')
nnoremap <silent><buffer><expr> l
\ defx#do_action('open')
nnoremap <silent><buffer><expr> E
\ defx#do_action('open', 'vsplit')
nnoremap <silent><buffer><expr> P
\ defx#do_action('open', 'pedit')
nnoremap <silent><buffer><expr> o
\ defx#do_action('open_or_close_tree')
nnoremap <silent><buffer><expr> K
\ defx#do_action('new_directory')
nnoremap <silent><buffer><expr> N
\ defx#do_action('new_file')
nnoremap <silent><buffer><expr> M
\ defx#do_action('new_multiple_files')
nnoremap <silent><buffer><expr> C
\ defx#do_action('toggle_columns',
\ 'mark:indent:icon:filename:type:size:time')
nnoremap <silent><buffer><expr> S
\ defx#do_action('toggle_sort', 'time')
nnoremap <silent><buffer><expr> d
\ defx#do_action('remove')
nnoremap <silent><buffer><expr> r
\ defx#do_action('rename')
nnoremap <silent><buffer><expr> !
\ defx#do_action('execute_command')
nnoremap <silent><buffer><expr> x
\ defx#do_action('execute_system')
nnoremap <silent><buffer><expr> yy
\ defx#do_action('yank_path')
nnoremap <silent><buffer><expr> .
\ defx#do_action('toggle_ignored_files')
nnoremap <silent><buffer><expr> ;
\ defx#do_action('repeat')
nnoremap <silent><buffer><expr> h
\ defx#do_action('cd', ['..'])
nnoremap <silent><buffer><expr> ~
\ defx#do_action('cd')
nnoremap <silent><buffer><expr> q
\ defx#do_action('quit')
nnoremap <silent><buffer><expr> <Space>
\ defx#do_action('toggle_select') . 'j'
nnoremap <silent><buffer><expr> *
\ defx#do_action('toggle_select_all')
nnoremap <silent><buffer><expr> j
\ line('.') == line('$') ? 'gg' : 'j'
nnoremap <silent><buffer><expr> k
\ line('.') == 1 ? 'G' : 'k'
nnoremap <silent><buffer><expr> <C-l>
\ defx#do_action('redraw')
nnoremap <silent><buffer><expr> <C-g>
\ defx#do_action('print')
nnoremap <silent><buffer><expr> cd
\ defx#do_action('change_vim_cwd')
endfunction
" -----
" }}}
" FZF {{{
" -----
map <C-f> :DashboardFindFile<cr>
" ----- " -----
" }}} " }}}

View File

@ -38,25 +38,33 @@ call plug#begin('~/.local/share/nvim/plugged')
" Plugins {{{ " Plugins {{{
" ----- " -----
" Dashboard
Plug 'glepnir/dashboard-nvim'
" DDC/DDU
Plug 'vim-denops/denops.vim'
Plug 'Shougo/ddc.vim'
Plug 'Shougo/ddu.vim'
Plug 'Shougo/ddc-around'
Plug 'Shougo/ddc-matcher_head'
Plug 'Shougo/ddc-sorter_rank'
" Buffer exploration
Plug 'bagrat/vim-buffet', { 'as': 'buffet' }
" Telescope
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' }
" Devicons
Plug 'kyazdani42/nvim-web-devicons'
" Ansible " Ansible
Plug 'pearofducks/ansible-vim' Plug 'pearofducks/ansible-vim'
" Artify " Artify
Plug 'delphinus/artify.nvim' Plug 'delphinus/artify.nvim'
" Deoplete
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'kristijanhusak/defx-icons'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
" Buffer exploration
Plug 'bagrat/vim-buffet', { 'as': 'buffet' }
" Dashboard
Plug 'glepnir/dashboard-nvim'
" Editorconfig " Editorconfig
Plug 'editorconfig/editorconfig-vim' Plug 'editorconfig/editorconfig-vim'
@ -110,10 +118,6 @@ Plug 'mhinz/vim-signify'
" Golden resizing " Golden resizing
Plug 'roman/golden-ratio' Plug 'roman/golden-ratio'
" Fuzzy finder
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
" Distraction-free writing " Distraction-free writing
Plug 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'
Plug 'junegunn/limelight.vim' Plug 'junegunn/limelight.vim'
@ -140,9 +144,6 @@ Plug 'connorholyday/vim-snazzy', { 'as': 'snazzy' }
" Plug 'jacoborus/tender.vim', { 'as': 'tender' } " Plug 'jacoborus/tender.vim', { 'as': 'tender' }
" Plug 'dylanaraps/wal.vim' " Plug 'dylanaraps/wal.vim'
" Customization
Plug 'ryanoasis/vim-devicons'
" Sudo workaround plugin " Sudo workaround plugin
Plug 'lambdalisue/suda.vim' Plug 'lambdalisue/suda.vim'

View File

@ -31,3 +31,7 @@ settings:
https://www.youtube.com: false https://www.youtube.com: false
fonts.default_size: fonts.default_size:
global: 12pt global: 12pt
scrolling.bar:
global: always
tabs.show:
global: never

View File

@ -1166,7 +1166,7 @@ c.qt.highdpi = True
## - always: Always use low-end device mode. ## - always: Always use low-end device mode.
## - auto: Decide automatically (uses low-end mode with < 1 GB available RAM). ## - auto: Decide automatically (uses low-end mode with < 1 GB available RAM).
## - never: Never use low-end device mode. ## - never: Never use low-end device mode.
c.qt.low_end_device_mode = 'auto' c.qt.chromium.low_end_device_mode = 'auto'
## Which Chromium process model to use. Alternative process models use ## Which Chromium process model to use. Alternative process models use
## less resources, but decrease security and robustness. See the ## less resources, but decrease security and robustness. See the
@ -1178,7 +1178,7 @@ c.qt.low_end_device_mode = 'auto'
## - process-per-site-instance: Pages from separate sites are put into separate processes and separate visits to the same site are also isolated. ## - process-per-site-instance: Pages from separate sites are put into separate processes and separate visits to the same site are also isolated.
## - process-per-site: Pages from separate sites are put into separate processes. Unlike Process per Site Instance, all visits to the same site will share an OS process. The benefit of this model is reduced memory consumption, because more web pages will share processes. The drawbacks include reduced security, robustness, and responsiveness. ## - process-per-site: Pages from separate sites are put into separate processes. Unlike Process per Site Instance, all visits to the same site will share an OS process. The benefit of this model is reduced memory consumption, because more web pages will share processes. The drawbacks include reduced security, robustness, and responsiveness.
## - single-process: Run all tabs in a single process. This should be used for debugging purposes only, and it disables `:open --private`. ## - single-process: Run all tabs in a single process. This should be used for debugging purposes only, and it disables `:open --private`.
c.qt.process_model = 'process-per-site-instance' c.qt.chromium.process_model = 'process-per-site-instance'
## When to show the scrollbar. ## When to show the scrollbar.
## Type: String ## Type: String

View File

@ -0,0 +1,17 @@
{
"abbrev": "",
"description": [
""
],
"formatVersion": 1,
"menu": "",
"name": "Remarque",
"shortcut": "",
"tag": [
"% remarque",
"\\begin{remarque}",
"\t",
"\\end{remarque}"
],
"trigger": ""
}

View File

@ -1,16 +1,17 @@
{ {
"name" : "Python" , "abbrev": "",
"tag" : [ "description": [
"% code python", ""
"\begin{python}", ],
" %<•%>", "formatVersion": 1,
"\end{python}" "menu": "",
], "name": "Théorème",
"description" : [ "shortcut": "",
"" "tag": [
], "% théorème",
"abbrev" : "" , "\\begin{theoreme}[]",
"trigger" : "" , "\t",
"menu" : "" , "\\end{theoreme}"
"shortcut" : "Ctrl+F11" ],
"trigger": ""
} }

View File

@ -1,13 +0,0 @@
{
"name" : "Maths en gras" ,
"tag" : [
"\boldsymbol{%<•%:id:1%>}"
],
"description" : [
""
],
"abbrev" : "" ,
"trigger" : "" ,
"menu" : "" ,
"shortcut" : "Ctrl+Shift+B"
}

View File

@ -18,7 +18,7 @@ path=(~/bin ~/.local/bin $path[@])
# >>> active gnome-keyring >>> # >>> active gnome-keyring >>>
if [ -n "${DESKTOP_SESSION}" ];then if [ -n "${DESKTOP_SESSION}" ];then
eval $(gnome-keyring-daemon --start) # eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
fi fi
# <<< active gnome-keyring <<< # <<< active gnome-keyring <<<

View File

@ -6,6 +6,8 @@ directory = /home/jeff/Téléchargements/jeux/
dlc-list = https://raw.githubusercontent.com/Sude-/lgogdownloader-lists/master/game_has_dlc.txt dlc-list = https://raw.githubusercontent.com/Sude-/lgogdownloader-lists/master/game_has_dlc.txt
exclude = covers exclude = covers
include = all include = all
include-hidden-products = false
info-threads = 4
insecure = false insecure = false
language = fr language = fr
limit-rate = 0 limit-rate = 0
@ -21,7 +23,7 @@ progress-interval = 100
retries = 3 retries = 3
save-changelogs = false save-changelogs = false
save-serials = false save-serials = false
secret = 7af9c1e88972ed65a9f7859616d9c0a837856140 size-only = false
subdir-dlc = dlc/%dlcname% subdir-dlc = dlc/%dlcname%
subdir-extras = extras subdir-extras = extras
subdir-game = %gamename% subdir-game = %gamename%
@ -30,7 +32,7 @@ subdir-language-packs = languagepacks
subdir-patches = patches subdir-patches = patches
threads = 4 threads = 4
timeout = 10 timeout = 10
token = 8e643606d2b3747a5f7221e7f0b58f4a614c84e7
use-cache = false use-cache = false
use-dlc-list = false
verbose = false verbose = false
wait = 0 wait = 0

View File

@ -3,7 +3,7 @@ defaults
auto_from on auto_from on
tls_trust_file /etc/ssl/certs/ca-certificates.crt tls_trust_file /etc/ssl/certs/ca-certificates.crt
syslog on syslog on
#logfile /var/log/msmtp.log logfile /var/log/msmtp.log
# MaLa # MaLa
account jeff.lance@mala.fr account jeff.lance@mala.fr

View File

@ -26,7 +26,6 @@ set -g status-keys emacs # emacs key bindings in tmux command p
setw -g aggressive-resize on # super useful when using "grouped sessions" and multi-monitor setup setw -g aggressive-resize on # super useful when using "grouped sessions" and multi-monitor setup
set -g update-environment -r
# edit configuration # edit configuration
bind e new-window -n "~/.tmux.conf" "EDITOR=\${EDITOR//mvim/vim} && EDITOR=\${EDITOR//gvim/vim} && \${EDITOR:-vim} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"" bind e new-window -n "~/.tmux.conf" "EDITOR=\${EDITOR//mvim/vim} && EDITOR=\${EDITOR//gvim/vim} && \${EDITOR:-vim} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\""

View File

@ -55,7 +55,8 @@ set -g @tpm_plugins ' \
set -g @onedark_widgets "#(date +%s)" set -g @onedark_widgets "#(date +%s)"
# set -g @dracula-refresh-rate 5 # set -g @dracula-refresh-rate 5
# set -g @dracula-show-fahrenheit false set -g @dracula-show-fahrenheit false
set -g @dracula-fixed-location "Livry-Gargan"
# set -g @dracula-day-month true # set -g @dracula-day-month true
# set -g @dracula-show-powerline true # set -g @dracula-show-powerline true
# set -g @dracula-show-network false # set -g @dracula-show-network false
@ -69,7 +70,17 @@ set -g @onedark_widgets "#(date +%s)"
if "test ! -d ~/.tmux/plugins/tpm" \ if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'
# -- start customizations -----------------------------------------------------
#
# make tmux works with ssh-agent
set -g update-environment "DISPLAY SSH_ASKPASS \
SSH_AUTH_SOCK SSH_AGENT_PID \
SSH_CONNECTION WINDOWID XAUTHORITY"
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# start with a new session
new-session new-session