vim and nvim
This commit is contained in:
parent
3808dc2b23
commit
c2b404b17f
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -100,3 +100,6 @@
|
||||
[submodule "vim/.vim/pack/autoload/start/vim-abolish"]
|
||||
path = vim/.vim/pack/autoload/start/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
|
||||
|
4
nvim/.config/nvim/after/ftplugin/cmake.lua
Normal file
4
nvim/.config/nvim/after/ftplugin/cmake.lua
Normal file
@ -0,0 +1,4 @@
|
||||
vim.lsp.start({
|
||||
name = 'cmake-language-server',
|
||||
cmd = {'cmake-language-server'},
|
||||
})
|
4
nvim/.config/nvim/after/ftplugin/sh.lua
Normal file
4
nvim/.config/nvim/after/ftplugin/sh.lua
Normal file
@ -0,0 +1,4 @@
|
||||
vim.lsp.start({
|
||||
name = 'bash-language-server',
|
||||
cmd = {'bash-language-server'},
|
||||
})
|
5
nvim/.config/nvim/compiler/esp.lua
Normal file
5
nvim/.config/nvim/compiler/esp.lua
Normal 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-*"},
|
||||
})
|
@ -1,3 +1,4 @@
|
||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||
let &packpath = &runtimepath
|
||||
let g:python3_host_prog="/usr/bin/python"
|
||||
source ~/.vimrc
|
||||
|
@ -1 +1,2 @@
|
||||
vim.g.vimtex_view_method="zathura"
|
||||
vim.opt.completeopt="menu,popup,noinsert,noselect"
|
||||
|
7
nvim/.config/nvim/plugin/lsp.vim
Normal file
7
nvim/.config/nvim/plugin/lsp.vim
Normal 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
|
@ -4,7 +4,9 @@ snippet base "Description" b
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[french]{babel}
|
||||
\usepackage[pdftex]{graphicx}
|
||||
\usepackage{amsmath, amsfonts, amssymb, amsthm}
|
||||
\usepackage{fullpage}
|
||||
|
||||
\title{${2:${VISUAL:Titre}}}
|
||||
\author{${3:${VISUAL:Debucquoy Anthony}}}
|
||||
|
1
vim/.vim/pack/autoload/start/vim-textidote
Submodule
1
vim/.vim/pack/autoload/start/vim-textidote
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 861bce10ee9b6c2acf39b0abba805d6d696b63d5
|
@ -37,6 +37,7 @@ execute "set <M-g>=\eg"
|
||||
nnoremap <M-g> :call GFilesFallback()<CR>
|
||||
|
||||
nnoremap <leader><CR> :vert term<CR>
|
||||
nnoremap <leader>z :MaximizerToggle<CR>
|
||||
|
||||
let g:netrw_keepdir=0
|
||||
let g:netrw_banner=0
|
||||
|
@ -71,6 +71,7 @@ alias get_idf='source /opt/esp-idf/export.sh'
|
||||
alias open="xdg-open"
|
||||
alias sxiv=nsxiv
|
||||
alias :q=exit
|
||||
alias vim=nvim
|
||||
|
||||
# Theming section
|
||||
autoload -U compinit colors zcalc
|
||||
|
Loading…
Reference in New Issue
Block a user