vim and nvim

This commit is contained in:
2024-10-04 08:49:11 +02:00
parent 3808dc2b23
commit c2b404b17f
12 changed files with 30 additions and 0 deletions

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
let &packpath = &runtimepath
let g:python3_host_prog="/usr/bin/python"
source ~/.vimrc

View File

@ -1 +1,2 @@
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