CUDA, OpenSCAD, and a bit of coloring and instant markdown

This commit is contained in:
Knyffen 2023-04-28 17:51:52 +02:00
parent db57552b98
commit 6abccc83bf

View File

@ -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 <Esc> <C-\><C-n>
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 <<EOF
require 'openscad'
vim.g.openscad_fuzzy_finder = 'fzf'
vim.g.openscad_cheatsheet_window_blend = 15 --%
vim.g.openscad_load_snippets = false
-- should the openscad project automatically be opened on startup
vim.g.openscad_auto_open = false
--vim.g.openscad_default_mappings = true
vim.g.openscad_cheatsheet_toggle_key = '<Enter>'
vim.g.openscad_help_trig_key = '<A-h>'
vim.g.openscad_help_manual_trig_key = '<A-m>'
vim.g.openscad_exec_openscad_trig_key = '<Leader>ll'
vim.g.openscad_top_toggle = '<A-c>'
EOF
" }}}
" TODO:
" disable copying when pasting in visual mode {{{
"vnoremap p <p>:let @"=@0<CR>
@ -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 <buffer> <Leader>ll :InstantMarkdownPreview<CR>
" 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