about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-09-19 21:38:37 +0900
committersefidel <contact@sefidel.net>2022-09-19 21:38:37 +0900
commit83c01bdcf35cd95df2d0eb12a651d300cae71140 (patch)
tree6ef66e8e4a765dbccdcc0b7cd7e22f13f58df070
parentc20b8719323e5447694c93d2e186085eef73ef63 (diff)
downloadnvimrc-83c01bdcf35cd95df2d0eb12a651d300cae71140.tar.gz
nvimrc-83c01bdcf35cd95df2d0eb12a651d300cae71140.zip
feat(slimv): add lisp
-rw-r--r--fnl/nvrc/keymaps.fnl6
-rw-r--r--fnl/nvrc/options.fnl2
-rw-r--r--fnl/nvrc/pack.fnl1
-rw-r--r--fnl/nvrc/packs/slimv.fnl5
4 files changed, 11 insertions, 3 deletions
diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl
index 85283c1..bfcc8bf 100644
--- a/fnl/nvrc/keymaps.fnl
+++ b/fnl/nvrc/keymaps.fnl
@@ -3,6 +3,7 @@
 
 (map! [nv :silent] :<space> "<Nop>")
 (setv! mapleader " ")
+(setv! maplocalleader ",")
 
 (map! [n] "<leader>;" ":")
 
@@ -14,9 +15,10 @@
 (map! [n :silent] :<leader>d ":buffers <cr>")
 (map! [n :silent] :<leader>ya ":%y+ <cr>")
 
-(map! [n :silent] :<leader>/ ((. (require :Comment.api) :toggle_current_linewise)))
+(map! [n :silent] :<leader>/  ((. (. (. (require :Comment.api) :toggle) :linewise)
+                          :current)))
 (map! [v :silent] :<leader>/
-      ":lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode()) <cr>")
+      ":lua require('Comment.api').toggle.linewise(vim.fn.visualmode()) <cr>")
 
 (map! [n :silent] :<leader>ff ((. (require :fzf-lua) :files)))
 (map! [n :silent] :<leader>fd ((. (require :fzf-lua) :grep)))
diff --git a/fnl/nvrc/options.fnl b/fnl/nvrc/options.fnl
index 7bef595..13e1d1e 100644
--- a/fnl/nvrc/options.fnl
+++ b/fnl/nvrc/options.fnl
@@ -52,7 +52,7 @@
                  :rrhelper
                  :spellfile_plugin
                  :matchit]
-      providers [:perl :python :python3 :node :ruby]]
+      providers [:perl :node :ruby]]
      (each [_ v (ipairs built-ins)]
       (let [b (.. :loaded_ v)]
        (tset vim.g b 1)))
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index e4e823f..1adf1f2 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -22,6 +22,7 @@
 (pack! :mfussenegger/nvim-dap {:req :dap :requires [(pack :nvim-lua/plenary.nvim)]})
 (pack! :rcarriga/nvim-dap-ui {:init :dapui :requires [(pack :mfussenegger/nvim-dap)]})
 (pack! :gpanders/editorconfig.nvim)
+(pack! :kovisoft/slimv {:req :slimv :ft :lisp})
 (pack! :stefandtw/quickfix-reflector.vim {:ft :qf})
 (pack! :tpope/vim-fugitive)
 (pack! :tpope/vim-eunuch)
diff --git a/fnl/nvrc/packs/slimv.fnl b/fnl/nvrc/packs/slimv.fnl
new file mode 100644
index 0000000..21f0648
--- /dev/null
+++ b/fnl/nvrc/packs/slimv.fnl
@@ -0,0 +1,5 @@
+(import-macros {: setv!} :nvrc.macro.set)
+
+(setv! slimv_swank_cmd "!osascript -e \"tell application \\\"iTerm2\\\" to set newWindow to (create window with profile \\\"Default\\\" command \\\"zsh -c 'sbcl --load ~/.local/share/nvim/site/pack/packer/opt/slimv/slime/start-swank.lisp'\\\")\"")
+
+;; (setv! slime_swank_cmd "exit 1")