Mercurial > dotfiles
comparison dot_config/nvim/init.vim @ 276:ecc3074ac1fc
Add delimitMate config for systemverilog and python
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 24 Aug 2020 21:29:27 +0200 |
parents | 6eae07a6985f |
children | a567e547b45a |
comparison
equal
deleted
inserted
replaced
275:6eae07a6985f | 276:ecc3074ac1fc |
---|---|
1116 augroup ft_systemverilog | 1116 augroup ft_systemverilog |
1117 au! | 1117 au! |
1118 au FileType systemverilog setlocal suffixesadd+=.sv,.v | 1118 au FileType systemverilog setlocal suffixesadd+=.sv,.v |
1119 au FileType systemverilog setlocal foldmethod=marker | 1119 au FileType systemverilog setlocal foldmethod=marker |
1120 au FileType systemverilog,verilog call SVAlign() | 1120 au FileType systemverilog,verilog call SVAlign() |
1121 au FileType systemverilog,verilog let b:delimitMate_quotes = "\" '" | 1121 au FileType systemverilog,verilog let b:delimitMate_quotes = "\"" |
1122 augroup END | 1122 augroup END |
1123 | 1123 |
1124 function! SVAlign() | 1124 function! SVAlign() |
1125 let g:easy_align_delimiters = { | 1125 let g:easy_align_delimiters = { |
1126 \ ')': { 'pattern': '[()]', 'left_margin': 0, 'right_margin': 0, 'stick_to_left': 0} | 1126 \ ')': { 'pattern': '[()]', 'left_margin': 0, 'right_margin': 0, 'stick_to_left': 0} |
1144 augroup f_python | 1144 augroup f_python |
1145 autocmd! | 1145 autocmd! |
1146 autocmd FileType python setlocal shiftwidth=4 | 1146 autocmd FileType python setlocal shiftwidth=4 |
1147 au FileType python setlocal formatprg=autopep8\ - | 1147 au FileType python setlocal formatprg=autopep8\ - |
1148 autocmd FileType python setlocal path-=** | 1148 autocmd FileType python setlocal path-=** |
1149 autocmd Filetype python let b:delimitMate_nesting_quotes = ['"', "'"] | |
1149 augroup END | 1150 augroup END |
1150 lua << EOF | 1151 lua << EOF |
1151 vim.lsp.set_log_level("debug") | 1152 vim.lsp.set_log_level("debug") |
1152 EOF | 1153 EOF |
1153 lua << EOF | 1154 lua << EOF |
1241 let g:completion_enable_snippet = 'UltiSnips' | 1242 let g:completion_enable_snippet = 'UltiSnips' |
1242 "Fallback for https://github.com/Raimondi/delimitMate expanding on enter | 1243 "Fallback for https://github.com/Raimondi/delimitMate expanding on enter |
1243 let g:completion_confirm_key_rhs = "\<Plug>delimitMateCR" | 1244 let g:completion_confirm_key_rhs = "\<Plug>delimitMateCR" |
1244 let g:UltiSnipsJumpForwardTrigger="<c-b>" | 1245 let g:UltiSnipsJumpForwardTrigger="<c-b>" |
1245 let g:UltiSnipsJumpBackwardTrigger="<c-z>" | 1246 let g:UltiSnipsJumpBackwardTrigger="<c-z>" |
1247 | |
1248 let delimitMate_expand_cr = 1 | |
1249 let delimitMate_expand_space = 1 | |
1246 " }}} | 1250 " }}} |
1247 " Background make {{{ | 1251 " Background make {{{ |
1248 nnoremap <F9> :PMake<CR> | 1252 nnoremap <F9> :PMake<CR> |
1249 " }}} | 1253 " }}} |
1250 " LanguageClient {{{ | 1254 " LanguageClient {{{ |