diff options
author | DrNuget <drnuget@outlook.com> | 2025-02-16 15:46:35 +0200 |
---|---|---|
committer | DrNuget <drnuget@outlook.com> | 2025-02-16 15:46:35 +0200 |
commit | 0b191fce6b895b157d652feff5c236cf77d6a53c (patch) | |
tree | 9cf617798eb9fe5c42999c0c8739004b9da6fd00 /.config | |
parent | 0c5ae5efd13070523d39d4d6e75d50349f02ac68 (diff) |
vimrc add pio syntax highlighting and c include macro
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 45cdf9f..ab196e7 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -12,6 +12,9 @@ vim.cmd([[ set splitbelow splitright + " PIO filetype + autocmd BufRead,BufNewFile *.pio set filetype=pio + " Insert mode hjkl inoremap <C-h> <left> inoremap <C-j> <down> @@ -41,6 +44,7 @@ vim.cmd([[ " C Macros autocmd Filetype c inoremap im<tab> int<space>main()<enter>{<enter><enter>return<space>0;<enter>}<up><up><tab> autocmd Filetype c inoremap i<tab> #include<space><><left> + autocmd Filetype c inoremap I<tab> #include<space>""<left> autocmd Filetype c inoremap w<tab> while()<space>{<enter>}<esc>ke2li autocmd Filetype c inoremap f<tab> for(;;)<space>{<enter>}<esc>ke2li autocmd Filetype c inoremap s<tab> switch()<space>{<enter>}<esc>ke2li @@ -137,5 +141,8 @@ require("pckr").add{ }, { "mattn/calendar-vim" + }, + { + "mikebentley15/vim-pio" } } |