]> git.newer.systems - nvim.git/commitdiff
lua
authorTucker Johnson <tucker@newer.systems>
Wed, 18 Jun 2025 20:30:59 +0000 (16:30 -0400)
committerTucker Johnson <tucker@newer.systems>
Wed, 18 Jun 2025 20:30:59 +0000 (16:30 -0400)
.gitignore
ftplugin/lua.vim [new file with mode: 0644]
ftplugin/markdown.vim
scripts/compiler

index a9d915664fdf98bfbf05deb6c8f2858e9abd4623..b9dc613201d16ccb7df23f8ba7049018b24a2d71 100644 (file)
@@ -1,5 +1,6 @@
 autoload/
 plugged/
+lua/
 !init.vim
 !shortcuts.vim
 !ftplugin/*.vim
diff --git a/ftplugin/lua.vim b/ftplugin/lua.vim
new file mode 100644 (file)
index 0000000..b32befc
--- /dev/null
@@ -0,0 +1,2 @@
+set tabstop=2
+set shiftwidth=2
index 0e2a9caad0608bf90bde0ba8a7a8fd394ac2c990..f136aed0bb8242ffc81935da792889c27297f5a9 100644 (file)
@@ -6,3 +6,6 @@ map <leader>C :vsp<space>$CALENDAR<CR>
 imap <C-N> <esc>o-[]<space>
 nmap <C-N> o-[]<space>
 nmap <C-D> :.s/\-\[\]/\-\[x\]/<enter>
+
+command! SetClassAnalyze lua require('setclass').analyze_selection()
+xnoremap <silent> <leader>sc :<C-u>lua require('setclass').analyze_selection()<CR>
index 2bf6126543beb44b636acede6a1e43a1ec3ec2ce..d86f4f48473af4bce200800b32772609243e52aa 100755 (executable)
@@ -33,6 +33,7 @@ case "$ext" in
     org) emacs "${file}" --batch -u "${USER}" -f org-latex-export-to-pdf ;;
     py) python "${file}" ;;
     [rR]md) Rscript -e "rmarkdown::render('${file}', quiet=TRUE)" ;;
+    R) Rscript "${file}" ;;
     rs) cargo build ;;
     sass) sassc -a "${file}" "${base}.css" ;;
     scad) openscad -o "${base}.stl" "${file}" ;;