vim and nvim

This commit is contained in:
Debucquoy Anthony 2024-10-04 08:49:11 +02:00
parent 3808dc2b23
commit c2b404b17f
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
12 changed files with 30 additions and 0 deletions

3
.gitmodules vendored
View File

@ -100,3 +100,6 @@
[submodule "vim/.vim/pack/autoload/start/vim-abolish"] [submodule "vim/.vim/pack/autoload/start/vim-abolish"]
path = vim/.vim/pack/autoload/start/vim-abolish path = vim/.vim/pack/autoload/start/vim-abolish
url = https://github.com/tpope/vim-abolish url = https://github.com/tpope/vim-abolish
[submodule "vim/.vim/pack/autoload/start/vim-textidote"]
path = vim/.vim/pack/autoload/start/vim-textidote
url = https://github.com/PatrBal/vim-textidote

View File

@ -0,0 +1,4 @@
vim.lsp.start({
name = 'cmake-language-server',
cmd = {'cmake-language-server'},
})

View File

@ -0,0 +1,4 @@
vim.lsp.start({
name = 'bash-language-server',
cmd = {'bash-language-server'},
})

View File

@ -0,0 +1,5 @@
vim.lsp.stop_client(vim.lsp.get_clients())
vim.lsp.start({
name = 'clangd',
cmd = {'/home/tonitch/Documents/aur/llvm-espressif/src/esp-clang/bin/clangd', "--query-driver=/home/tonitch/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/**/bin/xtensa-esp32-elf-*"},
})

View File

@ -1,3 +1,4 @@
set runtimepath^=~/.vim runtimepath+=~/.vim/after set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath let &packpath = &runtimepath
let g:python3_host_prog="/usr/bin/python"
source ~/.vimrc source ~/.vimrc

View File

@ -1 +1,2 @@
vim.g.vimtex_view_method="zathura" vim.g.vimtex_view_method="zathura"
vim.opt.completeopt="menu,popup,noinsert,noselect"

View File

@ -0,0 +1,7 @@
function! OpenCompletion()
if !pumvisible() && ((v:char >= 'a' && v:char <= 'z') || (v:char >= 'A' && v:char <= 'Z'))
call feedkeys("\<C-x>\<C-o>", "n")
endif
endfunction
autocmd InsertCharPre * if &omnifunc != "" | call OpenCompletion() | endif

View File

@ -4,7 +4,9 @@ snippet base "Description" b
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage[french]{babel} \usepackage[french]{babel}
\usepackage[pdftex]{graphicx}
\usepackage{amsmath, amsfonts, amssymb, amsthm} \usepackage{amsmath, amsfonts, amssymb, amsthm}
\usepackage{fullpage}
\title{${2:${VISUAL:Titre}}} \title{${2:${VISUAL:Titre}}}
\author{${3:${VISUAL:Debucquoy Anthony}}} \author{${3:${VISUAL:Debucquoy Anthony}}}

@ -0,0 +1 @@
Subproject commit 861bce10ee9b6c2acf39b0abba805d6d696b63d5

View File

@ -37,6 +37,7 @@ execute "set <M-g>=\eg"
nnoremap <M-g> :call GFilesFallback()<CR> nnoremap <M-g> :call GFilesFallback()<CR>
nnoremap <leader><CR> :vert term<CR> nnoremap <leader><CR> :vert term<CR>
nnoremap <leader>z :MaximizerToggle<CR>
let g:netrw_keepdir=0 let g:netrw_keepdir=0
let g:netrw_banner=0 let g:netrw_banner=0

View File

@ -71,6 +71,7 @@ alias get_idf='source /opt/esp-idf/export.sh'
alias open="xdg-open" alias open="xdg-open"
alias sxiv=nsxiv alias sxiv=nsxiv
alias :q=exit alias :q=exit
alias vim=nvim
# Theming section # Theming section
autoload -U compinit colors zcalc autoload -U compinit colors zcalc