From 83c01bdcf35cd95df2d0eb12a651d300cae71140 Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 19 Sep 2022 21:38:37 +0900 Subject: feat(slimv): add lisp --- fnl/nvrc/keymaps.fnl | 6 ++++-- fnl/nvrc/options.fnl | 2 +- fnl/nvrc/pack.fnl | 1 + fnl/nvrc/packs/slimv.fnl | 5 +++++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 fnl/nvrc/packs/slimv.fnl (limited to 'fnl/nvrc') 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] : "") (setv! mapleader " ") +(setv! maplocalleader ",") (map! [n] ";" ":") @@ -14,9 +15,10 @@ (map! [n :silent] :d ":buffers ") (map! [n :silent] :ya ":%y+ ") -(map! [n :silent] :/ ((. (require :Comment.api) :toggle_current_linewise))) +(map! [n :silent] :/ ((. (. (. (require :Comment.api) :toggle) :linewise) + :current))) (map! [v :silent] :/ - ":lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode()) ") + ":lua require('Comment.api').toggle.linewise(vim.fn.visualmode()) ") (map! [n :silent] :ff ((. (require :fzf-lua) :files))) (map! [n :silent] :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") -- cgit 1.4.1