Add arduino IDE config
This commit is contained in:
parent
91539bd448
commit
4dc255bc69
11
nvim/.config/nvim/ftplugin/arduino.vim
Normal file
11
nvim/.config/nvim/ftplugin/arduino.vim
Normal file
@ -0,0 +1,11 @@
|
||||
" Keybindings for sketches
|
||||
nnoremap <buffer> <leader>aa <cmd>ArduinoAttach<CR>
|
||||
nnoremap <buffer> <leader>av <cmd>ArduinoVerify<CR>
|
||||
nnoremap <buffer> <leader>au <cmd>ArduinoUpload<CR>
|
||||
nnoremap <buffer> <leader>aus <cmd>ArduinoUploadAndSerial<CR>
|
||||
nnoremap <buffer> <leader>as <cmd>ArduinoSerial<CR>
|
||||
nnoremap <buffer> <leader>ab <cmd>ArduinoChooseBoard<CR>
|
||||
nnoremap <buffer> <leader>ap <cmd>ArduinoChooseProgrammer<CR>
|
||||
|
||||
" Status line
|
||||
autocmd BufNewFile,BufRead *.ino let g:airline_section_x='%{MyStatusLine()}'
|
@ -6,6 +6,7 @@ Plug 'dense-analysis/ale'
|
||||
"Plug 'tweekmonster/deoplete-clang2'
|
||||
Plug 'sbdchd/neoformat'
|
||||
Plug 'junegunn/fzf.vim', { 'do': { -> fzf#install() } }
|
||||
Plug 'stevearc/vim-arduino'
|
||||
"Plug 'vim-airline/vim-airline'
|
||||
"Plug 'vim-airline/vim-airline-themes'
|
||||
|
||||
@ -31,7 +32,7 @@ let g:ale_linters = {
|
||||
\ 'vim': ['vint'],
|
||||
\ 'cpp': ['clang'],
|
||||
\ 'c': ['clang']
|
||||
\}
|
||||
\}
|
||||
|
||||
" ---------- Deoplete ----------
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
@ -92,11 +93,11 @@ function! s:buffer_lines()
|
||||
endfunction
|
||||
|
||||
command! FZFLines call fzf#run({
|
||||
\ 'source': <sid>buffer_lines(),
|
||||
\ 'sink': function('<sid>line_handler'),
|
||||
\ 'options': '--extended --nth=3..',
|
||||
\ 'down': '60%'
|
||||
\})
|
||||
\ 'source': <sid>buffer_lines(),
|
||||
\ 'sink': function('<sid>line_handler'),
|
||||
\ 'options': '--extended --nth=3..',
|
||||
\ 'down': '60%'
|
||||
\})
|
||||
|
||||
" Select buffer
|
||||
function! s:buflist()
|
||||
@ -111,11 +112,11 @@ function! s:bufopen(e)
|
||||
endfunction
|
||||
|
||||
nnoremap <silent> <f5> :call fzf#run({
|
||||
\ 'source': reverse(<sid>buflist()),
|
||||
\ 'sink': function('<sid>bufopen'),
|
||||
\ 'options': '+m',
|
||||
\ 'down': len(<sid>buflist()) + 2
|
||||
\ })<CR>
|
||||
\ 'source': reverse(<sid>buflist()),
|
||||
\ 'sink': function('<sid>bufopen'),
|
||||
\ 'options': '+m',
|
||||
\ 'down': len(<sid>buflist()) + 2
|
||||
\ })<CR>
|
||||
|
||||
" ---------- Neoformat ----------
|
||||
" Override python formatter
|
||||
|
Loading…
x
Reference in New Issue
Block a user