diff --git a/init.vim b/init.vim index 77ad618..140765d 100644 --- a/init.vim +++ b/init.vim @@ -173,6 +173,8 @@ " Haskell syntax highlighting Plug 'neovimhaskell/haskell-vim' + " OpenSCAD syntax highlighting + Plug 'salkin-mada/openscad.nvim' " }}} " Custom JIX modules @@ -263,6 +265,7 @@ tnoremap colorscheme dichromatic " Recolor selected line in QuickFix window hi QuickFixLine ctermbg=15 ctermfg=240 cterm=NONE guibg=#585858 guifg=#FFFFFF gui=NONE + hi Pmenu ctermbg=17 guibg=#00005F ctermfg=252 guifg=#DADADA " Lightline "\ 'colorscheme': 'solarized', @@ -591,6 +594,12 @@ endif autocmd BufReadPre,BufEnter *sage.python let b:neomake_python_enabled_makers = [] augroup END + " Configure for Python + augroup PythonConfig + autocmd! + autocmd BufReadPre,BufEnter *.py set foldmethod=indent + augroup END + " Configure for latex let g:neomake_tex_enabled_makers = ['chktex'] augroup NeomakeTex @@ -686,6 +695,27 @@ endif let g:haskell_indent_guard = 4 " 2 " }}} +"au BufRead,BufNewFile *.scad lua require('openscad') +" openscad {{{ + +lua <:let @"=@0 @@ -734,6 +764,8 @@ augroup CustomCommentDefinitions autocmd FileType julia setlocal commentstring=#\ %s autocmd FileType c setlocal commentstring=\/\/\ %s autocmd FileType cpp setlocal commentstring=\/\/\ %s + autocmd FileType cuda setlocal commentstring=\/\/\ %s + autocmd FileType openscad setlocal commentstring=\/\/\ %s augroup END @@ -821,7 +853,7 @@ augroup END au FileType markdown nnoremap ll :InstantMarkdownPreview " stop it with :InstantMarkdownStop "let g:instant_markdown_open_to_the_world = 1 - "let g:instant_markdown_allow_unsafe_content = 1 + let g:instant_markdown_allow_unsafe_content = 1 " Allows javascript "let g:instant_markdown_allow_external_content = 0 "let g:instant_markdown_logfile = '/tmp/instant_markdown.log' let g:instant_markdown_mathjax = 1