vim and nvim
This commit is contained in:
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
|
Reference in New Issue
Block a user