This commit is contained in:
Brieuc Dubois 2024-03-10 18:34:40 +01:00
parent 3839aaa28c
commit 70c10dd25f
5 changed files with 102 additions and 1 deletions

View File

@ -0,0 +1 @@
{"dependencies":{}}

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1,55 @@
-- General options
vim.opt.compatible = false
vim.opt.ignorecase = true
vim.opt.showmatch = true
vim.opt.hlsearch = true
vim.opt.incsearch = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 0
vim.opt.shiftwidth = 2
vim.opt.autoindent = true
vim.opt.expandtab = false
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.wildmode = 'longest,list'
vim.opt.syntax = 'on'
vim.opt.ttyfast = true
vim.opt.swapfile = false
vim.opt.mouse = 'a'
vim.opt.spell = true
vim.opt.spelllang = 'en' -- ,fr'
vim.api.nvim_set_hl(0, "SpellBad", { ctermbg=238 })
-- Plugins
local Plug = vim.fn['plug#']
vim.call('plug#begin')
Plug('neoclide/coc.nvim', {['branch'] = 'release'})
Plug('francoiscabrol/ranger.vim')
Plug('rbgrouleff/bclose.vim')
-- Plug('zbirenbaum/copilot.lua')
Plug('github/copilot.vim')
Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'})
vim.call('plug#end')
-- inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
-- \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
vim.g.ranger_replace_netrw = 1
vim.keymap.set('i', '<C-Right>', '<Plug>(copilot-accept-word)')
require('nvim-treesitter.configs').setup({
ensure_installed = { "go", "lua", "vim", "vimdoc", "sql", "json", },
highlight = {
enable = true,
},
})

View File

@ -0,0 +1,42 @@
set nocompatible
set ignorecase
set showmatch
set hlsearch
set incsearch
set tabstop=2
set softtabstop=0
set shiftwidth=2
set autoindent
set noexpandtab
set number
set relativenumber
set wildmode=longest,list
syntax on
" set clipboard=unnamedplus
" set spell
" set spelllang=en ",fr
set ttyfast
set noswapfile
set mouse=a
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'francoiscabrol/ranger.vim'
Plug 'rbgrouleff/bclose.vim'
Plug 'github/copilot.vim'
call plug#end()
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
let g:ranger_replace_netrw = 1

View File

@ -12,7 +12,7 @@ plugins=(git sudo zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
export EDITOR='vim' export EDITOR='nvim'
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
@ -22,6 +22,8 @@ alias ip="ip -c"
alias ls="ls -A --color" alias ls="ls -A --color"
alias sl="sl -adew5F" alias sl="sl -adew5F"
alias ccat="pygmentize -g" alias ccat="pygmentize -g"
alias beep="sh -c 'speaker-test -t sine -f 600 > /dev/null & sleep .5 && pkill speaker-test'"
alias nv="nvim"
cat() { cat() {
for arg in "$@"; do for arg in "$@"; do