Update
This commit is contained in:
parent
91165a719a
commit
de31ee2c56
@ -10,7 +10,6 @@
|
||||
# to the user's home directory starting with `~/`.
|
||||
# import:
|
||||
# - ~/.config/alacritty/panda.yml
|
||||
|
||||
# Any items in the `env` entry below will be added as
|
||||
# environment variables. Some entries may override variables
|
||||
# set by alacritty itself.
|
||||
@ -22,7 +21,7 @@
|
||||
# check the local terminfo database and use `alacritty` if it is
|
||||
# available, otherwise `xterm-256color` is used.
|
||||
#TERM: alacritty
|
||||
|
||||
TERM: xterm-256color
|
||||
window:
|
||||
# Window dimensions (changes require restart)
|
||||
#
|
||||
@ -32,7 +31,6 @@ window:
|
||||
#dimensions:
|
||||
# columns: 0
|
||||
# lines: 0
|
||||
|
||||
# Window position (changes require restart)
|
||||
#
|
||||
# Specified in number of pixels.
|
||||
@ -40,7 +38,6 @@ window:
|
||||
#position:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# Window padding (changes require restart)
|
||||
#
|
||||
# Blank space added around the window in pixels. This padding is scaled
|
||||
@ -48,10 +45,8 @@ window:
|
||||
#padding:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# Spread additional padding evenly around the terminal content.
|
||||
#dynamic_padding: false
|
||||
|
||||
# Window decorations
|
||||
#
|
||||
# Values for `decorations`:
|
||||
@ -74,7 +69,6 @@ window:
|
||||
# Values for `startup_mode` (macOS only):
|
||||
# - SimpleFullscreen
|
||||
#startup_mode: Windowed
|
||||
|
||||
# Window title
|
||||
title: Alacritty
|
||||
|
||||
@ -87,7 +81,6 @@ window:
|
||||
#instance: Alacritty
|
||||
# General application class
|
||||
#general: Alacritty
|
||||
|
||||
# GTK theme variant (Linux/BSD only)
|
||||
#
|
||||
# Override the variant of the GTK theme. Commonly supported values are `dark`
|
||||
@ -98,10 +91,8 @@ window:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
#history: 10000
|
||||
|
||||
# Scrolling distance multiplier.
|
||||
#multiplier: 3
|
||||
|
||||
# Font configuration
|
||||
#font:
|
||||
# Normal (roman) font face
|
||||
@ -113,10 +104,8 @@ window:
|
||||
# - (Linux/BSD) monospace
|
||||
# - (Windows) Consolas
|
||||
#family: monospace
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Regular
|
||||
|
||||
# Bold font face
|
||||
#bold:
|
||||
# Font family
|
||||
@ -124,10 +113,8 @@ window:
|
||||
# If the bold family is not specified, it will fall back to the
|
||||
# value specified for the normal font.
|
||||
#family: monospace
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Bold
|
||||
|
||||
# Italic font face
|
||||
#italic:
|
||||
# Font family
|
||||
@ -135,10 +122,8 @@ window:
|
||||
# If the italic family is not specified, it will fall back to the
|
||||
# value specified for the normal font.
|
||||
#family: monospace
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Italic
|
||||
|
||||
# Bold italic font face
|
||||
#bold_italic:
|
||||
# Font family
|
||||
@ -146,33 +131,27 @@ window:
|
||||
# If the bold italic family is not specified, it will fall back to the
|
||||
# value specified for the normal font.
|
||||
#family: monospace
|
||||
|
||||
# The `style` can be specified to pick a specific face.
|
||||
#style: Bold Italic
|
||||
|
||||
# Point size
|
||||
#size: 11.0
|
||||
|
||||
# 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
|
||||
# spacing.
|
||||
#offset:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# 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
|
||||
# right, increasing `y` moves the glyph upward.
|
||||
#glyph_offset:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# Thin stroke font rendering (macOS only)
|
||||
#
|
||||
# Thin strokes are suitable for retina displays, but for non-retina screens
|
||||
# it is recommended to set `use_thin_strokes` to `false`.
|
||||
#use_thin_strokes: true
|
||||
|
||||
# Background opacity
|
||||
#
|
||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||
@ -181,142 +160,34 @@ window:
|
||||
|
||||
# If `true`, bold text is drawn using the bright color variants.
|
||||
#draw_bold_text_with_bright_colors: false
|
||||
|
||||
# Colors (Tomorrow Night)
|
||||
colors:
|
||||
# Default colors
|
||||
name: astromouse
|
||||
author: ""
|
||||
primary:
|
||||
background: '#000000'
|
||||
foreground: '#c5c8c6'
|
||||
|
||||
# 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.
|
||||
background: "#000000"
|
||||
foreground: "#ffffff"
|
||||
cursor:
|
||||
text: CellBackground
|
||||
cursor: CellForeground
|
||||
|
||||
# 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
|
||||
text: "#000000"
|
||||
cursor: "#ffffff"
|
||||
normal:
|
||||
black: '#1d1f21'
|
||||
red: '#cc6666'
|
||||
green: '#b5bd68'
|
||||
yellow: '#f0c674'
|
||||
blue: '#81a2be'
|
||||
magenta: '#b294bb'
|
||||
cyan: '#8abeb7'
|
||||
white: '#c5c8c6'
|
||||
|
||||
# Bright colors
|
||||
black: "#1c1c1c"
|
||||
red: "#d770af"
|
||||
green: "#9acc79"
|
||||
yellow: "#d0d26b"
|
||||
blue: "#77b6c5"
|
||||
magenta: "#a488d9"
|
||||
cyan: "#7fcab3"
|
||||
white: "#8d8d8d"
|
||||
bright:
|
||||
black: '#666666'
|
||||
red: '#d54e53'
|
||||
green: '#b9ca4a'
|
||||
yellow: '#e7c547'
|
||||
blue: '#7aa6da'
|
||||
magenta: '#c397d8'
|
||||
cyan: '#70c0b1'
|
||||
white: '#eaeaea'
|
||||
|
||||
# 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' }`
|
||||
#
|
||||
black: "#3d3a3a"
|
||||
red: "#d28abf"
|
||||
green: "#8fb676"
|
||||
yellow: "#c8bc45"
|
||||
blue: "#8fa7b9"
|
||||
magenta: "#bd89de"
|
||||
cyan: "#6ec2a8"
|
||||
white: "#dad3d3"
|
||||
indexed_colors: []
|
||||
|
||||
# Bell
|
||||
@ -339,14 +210,11 @@ indexed_colors: []
|
||||
# - EaseOutCirc
|
||||
# - Linear
|
||||
#animation: EaseOutExpo
|
||||
|
||||
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will
|
||||
# disable the visual bell animation.
|
||||
#duration: 0
|
||||
|
||||
# Visual bell animation color.
|
||||
#color: '#ffffff'
|
||||
|
||||
# Bell Command
|
||||
#
|
||||
# This program is executed whenever the bell is rung.
|
||||
@ -359,15 +227,12 @@ indexed_colors: []
|
||||
# args: ["Hello, World!"]
|
||||
#
|
||||
#command: None
|
||||
|
||||
#selection:
|
||||
# This string contains all characters that are used as separators for
|
||||
# "semantic words" in Alacritty.
|
||||
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
||||
|
||||
# When set to `true`, selected text will be copied to the primary clipboard.
|
||||
#save_to_clipboard: false
|
||||
|
||||
cursor:
|
||||
# Cursor style
|
||||
style:
|
||||
@ -387,7 +252,6 @@ cursor:
|
||||
# - On: Enable blinking by default
|
||||
# - Always: Force the cursor to always blink
|
||||
blinking: On
|
||||
|
||||
# Vi mode cursor style
|
||||
#
|
||||
# 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.
|
||||
#vi_mode_style: None
|
||||
|
||||
# Cursor blinking interval in milliseconds.
|
||||
#blink_interval: 750
|
||||
|
||||
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||
# window is not focused.
|
||||
#unfocused_hollow: true
|
||||
|
||||
# Thickness of the cursor relative to the cell width as floating point number
|
||||
# from `0.0` to `1.0`.
|
||||
#thickness: 0.15
|
||||
|
||||
# Live config reload (changes require restart)
|
||||
live_config_reload: true
|
||||
|
||||
@ -424,16 +284,13 @@ live_config_reload: true
|
||||
# program: /bin/bash
|
||||
# args:
|
||||
# - --login
|
||||
|
||||
# Startup directory
|
||||
#
|
||||
# Directory the shell is started in. If this is unset, or `None`, the working
|
||||
# directory of the parent process will be used.
|
||||
#working_directory: None
|
||||
|
||||
# Send ESC (\x1b) before characters when alt is pressed.
|
||||
#alt_send_esc: true
|
||||
|
||||
#mouse:
|
||||
# Click settings
|
||||
#
|
||||
@ -442,10 +299,8 @@ live_config_reload: true
|
||||
# or triple click.
|
||||
#double_click: { threshold: 300 }
|
||||
#triple_click: { threshold: 300 }
|
||||
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
#hide_when_typing: false
|
||||
|
||||
# Regex hints
|
||||
#
|
||||
# Terminal hints can be used to find text in the visible part of the terminal
|
||||
@ -453,7 +308,6 @@ live_config_reload: true
|
||||
#hints:
|
||||
# Keys used for the hint labels.
|
||||
#alphabet: "jfkdls;ahgurieowpq"
|
||||
|
||||
# List with all available hints
|
||||
#
|
||||
# Each hint must have a `regex` and either an `action` or a `command` field.
|
||||
@ -489,7 +343,6 @@ live_config_reload: true
|
||||
# binding:
|
||||
# key: U
|
||||
# mods: Control|Shift
|
||||
|
||||
# Mouse bindings
|
||||
#
|
||||
# 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)
|
||||
#mouse_bindings:
|
||||
# - { mouse: Middle, action: PasteSelection }
|
||||
|
||||
# Key bindings
|
||||
#
|
||||
# Key bindings are specified as a list of objects. For example, this is the
|
||||
@ -729,7 +581,6 @@ live_config_reload: true
|
||||
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
|
||||
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
|
||||
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
|
||||
|
||||
# Vi Mode
|
||||
#- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
|
||||
#- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
|
||||
@ -778,7 +629,6 @@ live_config_reload: true
|
||||
#- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
|
||||
#- { key: N, mode: Vi|~Search, action: SearchNext }
|
||||
#- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious }
|
||||
|
||||
# Search Mode
|
||||
#- { key: Return, mode: Search|Vi, action: SearchConfirm }
|
||||
#- { key: Escape, mode: Search, action: SearchCancel }
|
||||
@ -791,7 +641,6 @@ live_config_reload: true
|
||||
#- { key: Down, mode: Search, action: SearchHistoryNext }
|
||||
#- { key: Return, mode: Search|~Vi, action: SearchFocusNext }
|
||||
#- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious }
|
||||
|
||||
# (Windows, Linux, and BSD only)
|
||||
#- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
|
||||
#- { key: C, mods: Control|Shift, action: Copy }
|
||||
@ -805,10 +654,8 @@ live_config_reload: true
|
||||
#- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
|
||||
#- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||
#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
|
||||
|
||||
# (Windows only)
|
||||
#- { key: Return, mods: Alt, action: ToggleFullscreen }
|
||||
|
||||
# (macOS only)
|
||||
#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
|
||||
#- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
|
||||
@ -830,18 +677,14 @@ live_config_reload: true
|
||||
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
|
||||
#- { key: F, mods: Command, mode: ~Search, action: SearchForward }
|
||||
#- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
|
||||
|
||||
# Colorscheme
|
||||
import:
|
||||
- ~/.config/alacritty/panda.yml
|
||||
|
||||
#debug:
|
||||
# Display the time it takes to redraw each frame.
|
||||
#render_timer: false
|
||||
|
||||
# Keep the log file after quitting Alacritty.
|
||||
#persistent_logging: false
|
||||
|
||||
# Log level
|
||||
#
|
||||
# Values for `log_level`:
|
||||
@ -852,6 +695,6 @@ import:
|
||||
# - Debug
|
||||
# - Trace
|
||||
#log_level: Warn
|
||||
|
||||
# Print all received window events.
|
||||
#print_events: false
|
||||
theme: Astromouse
|
||||
|
@ -81,8 +81,9 @@ sticker_file "/home/jeff/.config/mpd/sticker.sql"
|
||||
# activation is in use.
|
||||
#
|
||||
# For network
|
||||
bind_to_address "localhost"
|
||||
# bind_to_address "127.0.0.1"
|
||||
#bind_to_address "localhost"
|
||||
bind_to_address "127.0.0.1"
|
||||
bind_to_address "192.168.0.1"
|
||||
#
|
||||
# And for Unix Socket
|
||||
# bind_to_address "/home/jeff/.config/mpd/socket"
|
||||
|
@ -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}
|
||||
#
|
||||
#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 = "$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 = (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 #####
|
||||
#
|
||||
|
8
conf.d/nvim/coc-settings.json
Normal file
8
conf.d/nvim/coc-settings.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"languageserver": {
|
||||
"digestif": {
|
||||
"command": "~/bin/digestif",
|
||||
"filetypes": ["tex", "plaintex", "context"]
|
||||
}
|
||||
}
|
||||
}
|
153
conf.d/nvim/coc.vim
Normal file
153
conf.d/nvim/coc.vim
Normal 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
55
conf.d/nvim/dashboard.lua
Normal 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
44
conf.d/nvim/ddc.vim
Normal 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
56
conf.d/nvim/ddu.vim
Normal 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
5
conf.d/nvim/devicons.lua
Normal 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;
|
||||
}
|
@ -302,7 +302,7 @@ source ${HOME}/.config/nvim/plug.vim
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter *
|
||||
\ if (argc() == 0 && !exists("s:std_in") && !has('gui'))
|
||||
\ | Dashboard
|
||||
" \ | Dashboard
|
||||
\ | endif
|
||||
|
||||
" " needed so deoplete can auto select the first suggestion
|
||||
@ -401,9 +401,9 @@ function! g:BuffetSetCustomColors()
|
||||
" -----
|
||||
|
||||
lua <<EOF
|
||||
local artify = require( 'artify' )
|
||||
local artify = require 'artify'
|
||||
artify('if', 'italic')
|
||||
artify('let', 'bold')
|
||||
artify('let', 'italic')
|
||||
EOF
|
||||
|
||||
" -----
|
||||
@ -460,61 +460,26 @@ autocmd FileType toml setlocal commentstring=#\ %s
|
||||
" Dashboard {{{
|
||||
" -----
|
||||
|
||||
let g:dashboard_custom_shortcut={
|
||||
\ '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'
|
||||
source ${HOME}/.config/nvim/dashboard.lua
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
|
||||
|
||||
" Defx {{{
|
||||
" DDC/DDU {{{
|
||||
" -----
|
||||
|
||||
" Set appearance
|
||||
call defx#custom#option(
|
||||
\ '_', {
|
||||
\ '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': '✓',
|
||||
\ }
|
||||
\ )
|
||||
source ${HOME}/.config/nvim/ddc.vim
|
||||
source ${HOME}/.config/nvim/ddu.vim
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
|
||||
|
||||
" 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 {{{
|
||||
" -----
|
||||
|
||||
|
@ -90,7 +90,7 @@ map <C-l> :call WinMove('l')<cr>
|
||||
nmap <Leader>ss :<C-u>SessionSave<CR>
|
||||
nmap <Leader>sl :<C-u>SessionLoad<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>fa :DashboardFindWord<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>
|
||||
|
||||
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>
|
||||
map <C-f> <cmd>lua require('telescope.builtin').find_files()<cr>
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
|
@ -38,25 +38,33 @@ call plug#begin('~/.local/share/nvim/plugged')
|
||||
" 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
|
||||
Plug 'pearofducks/ansible-vim'
|
||||
|
||||
" Artify
|
||||
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
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
|
||||
@ -110,10 +118,6 @@ Plug 'mhinz/vim-signify'
|
||||
" Golden resizing
|
||||
Plug 'roman/golden-ratio'
|
||||
|
||||
" Fuzzy finder
|
||||
Plug 'junegunn/fzf'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
|
||||
" Distraction-free writing
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'junegunn/limelight.vim'
|
||||
@ -140,9 +144,6 @@ Plug 'connorholyday/vim-snazzy', { 'as': 'snazzy' }
|
||||
" Plug 'jacoborus/tender.vim', { 'as': 'tender' }
|
||||
" Plug 'dylanaraps/wal.vim'
|
||||
|
||||
" Customization
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
|
||||
" Sudo workaround plugin
|
||||
Plug 'lambdalisue/suda.vim'
|
||||
|
||||
|
@ -31,3 +31,7 @@ settings:
|
||||
https://www.youtube.com: false
|
||||
fonts.default_size:
|
||||
global: 12pt
|
||||
scrolling.bar:
|
||||
global: always
|
||||
tabs.show:
|
||||
global: never
|
||||
|
@ -1166,7 +1166,7 @@ c.qt.highdpi = True
|
||||
## - always: Always use low-end device mode.
|
||||
## - auto: Decide automatically (uses low-end mode with < 1 GB available RAM).
|
||||
## - 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
|
||||
## 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: 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`.
|
||||
c.qt.process_model = 'process-per-site-instance'
|
||||
c.qt.chromium.process_model = 'process-per-site-instance'
|
||||
|
||||
## When to show the scrollbar.
|
||||
## Type: String
|
||||
|
17
conf.d/texstudio/macro/Macro_13.txsMacro
Normal file
17
conf.d/texstudio/macro/Macro_13.txsMacro
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"abbrev": "",
|
||||
"description": [
|
||||
""
|
||||
],
|
||||
"formatVersion": 1,
|
||||
"menu": "",
|
||||
"name": "Remarque",
|
||||
"shortcut": "",
|
||||
"tag": [
|
||||
"% remarque",
|
||||
"\\begin{remarque}",
|
||||
"\t",
|
||||
"\\end{remarque}"
|
||||
],
|
||||
"trigger": ""
|
||||
}
|
@ -1,16 +1,17 @@
|
||||
{
|
||||
"name" : "Python" ,
|
||||
"tag" : [
|
||||
"% code python",
|
||||
"\begin{python}",
|
||||
" %<•%>",
|
||||
"\end{python}"
|
||||
],
|
||||
"abbrev": "",
|
||||
"description": [
|
||||
""
|
||||
],
|
||||
"abbrev" : "" ,
|
||||
"trigger" : "" ,
|
||||
"formatVersion": 1,
|
||||
"menu": "",
|
||||
"shortcut" : "Ctrl+F11"
|
||||
"name": "Théorème",
|
||||
"shortcut": "",
|
||||
"tag": [
|
||||
"% théorème",
|
||||
"\\begin{theoreme}[]",
|
||||
"\t",
|
||||
"\\end{theoreme}"
|
||||
],
|
||||
"trigger": ""
|
||||
}
|
||||
|
@ -1,13 +0,0 @@
|
||||
{
|
||||
"name" : "Maths en gras" ,
|
||||
"tag" : [
|
||||
"\boldsymbol{%<•%:id:1%>}"
|
||||
],
|
||||
"description" : [
|
||||
""
|
||||
],
|
||||
"abbrev" : "" ,
|
||||
"trigger" : "" ,
|
||||
"menu" : "" ,
|
||||
"shortcut" : "Ctrl+Shift+B"
|
||||
}
|
@ -18,7 +18,7 @@ path=(~/bin ~/.local/bin $path[@])
|
||||
|
||||
# >>> active gnome-keyring >>>
|
||||
if [ -n "${DESKTOP_SESSION}" ];then
|
||||
eval $(gnome-keyring-daemon --start)
|
||||
# eval $(gnome-keyring-daemon --start)
|
||||
export SSH_AUTH_SOCK
|
||||
fi
|
||||
# <<< active gnome-keyring <<<
|
||||
|
@ -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
|
||||
exclude = covers
|
||||
include = all
|
||||
include-hidden-products = false
|
||||
info-threads = 4
|
||||
insecure = false
|
||||
language = fr
|
||||
limit-rate = 0
|
||||
@ -21,7 +23,7 @@ progress-interval = 100
|
||||
retries = 3
|
||||
save-changelogs = false
|
||||
save-serials = false
|
||||
secret = 7af9c1e88972ed65a9f7859616d9c0a837856140
|
||||
size-only = false
|
||||
subdir-dlc = dlc/%dlcname%
|
||||
subdir-extras = extras
|
||||
subdir-game = %gamename%
|
||||
@ -30,7 +32,7 @@ subdir-language-packs = languagepacks
|
||||
subdir-patches = patches
|
||||
threads = 4
|
||||
timeout = 10
|
||||
token = 8e643606d2b3747a5f7221e7f0b58f4a614c84e7
|
||||
use-cache = false
|
||||
use-dlc-list = false
|
||||
verbose = false
|
||||
wait = 0
|
||||
|
@ -3,7 +3,7 @@ defaults
|
||||
auto_from on
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
syslog on
|
||||
#logfile /var/log/msmtp.log
|
||||
logfile /var/log/msmtp.log
|
||||
|
||||
# MaLa
|
||||
account jeff.lance@mala.fr
|
||||
|
@ -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
|
||||
|
||||
set -g update-environment -r
|
||||
|
||||
# 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\""
|
||||
|
@ -55,7 +55,8 @@ set -g @tpm_plugins ' \
|
||||
set -g @onedark_widgets "#(date +%s)"
|
||||
|
||||
# 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-show-powerline true
|
||||
# set -g @dracula-show-network false
|
||||
@ -69,7 +70,17 @@ set -g @onedark_widgets "#(date +%s)"
|
||||
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 '~/.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
|
||||
|
Loading…
Reference in New Issue
Block a user