diff options
Diffstat (limited to 'mut')
| -rw-r--r-- | mut/neovim/fnl/conf/init.fnl | 2 | ||||
| -rw-r--r-- | mut/neovim/fnl/conf/pkgs/dap.fnl | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/mut/neovim/fnl/conf/init.fnl b/mut/neovim/fnl/conf/init.fnl index 0e65c84..c5a3f86 100644 --- a/mut/neovim/fnl/conf/init.fnl +++ b/mut/neovim/fnl/conf/init.fnl @@ -45,6 +45,8 @@ (local cope #(vim.cmd (.. ":botright copen " (math.floor (/ vim.o.lines 2.1))))) (local oil (require :oil.actions)) (let [map vim.keymap.set] + (map :n :ga "<Plug>(EasyAlign)") + (map :x :ga "<Plug>(EasyAlign)") (map :n :<leader>d<cr> (fn [] (draw true))) (map :n :<leader>d<bs> (fn [] (draw false))) (map :n :- ::Oil<cr>) diff --git a/mut/neovim/fnl/conf/pkgs/dap.fnl b/mut/neovim/fnl/conf/pkgs/dap.fnl index 55988f6..08dae2e 100644 --- a/mut/neovim/fnl/conf/pkgs/dap.fnl +++ b/mut/neovim/fnl/conf/pkgs/dap.fnl @@ -43,7 +43,7 @@ (set dap.defaults.fallback.external_terminal {:command :/Applications/Alacritty.app/Contents/MacOS/alacritty - :args [:-T :dap :-e]}); + :args [:-T :dap :-e]}) (dapui.setup @@ -65,6 +65,7 @@ :console "externalTerminal" :request "launch" :type "python" + :cwd :/Users/ivi/Programming :waitOnAbnormalExit true :waitOnNormalExit true})}) @@ -74,6 +75,11 @@ (fn [] (local fname (vim.fn.fnamemodify (vim.fn.bufname "%") ":p")) (local get_config (. run_table (vim.opt_local.ft:get))) + + (set dap.defaults.fallback.external_terminal + {:command :/Applications/Alacritty.app/Contents/MacOS/alacritty + :args [:-T :dap :--working-directory (vim.fn.getcwd) :-e]}) + (if get_config (dap.run (get_config fname))))) |
