From 63aae9abf1f83a41ba92a4672277ba04c3bd48bf Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Tue, 10 Oct 2023 10:03:15 +0000 Subject: changes on wsl machine --- mut/neovim/.hotpot.lua | 2 +- mut/neovim/fnl/conf/init.fnl | 14 ++++++++------ mut/neovim/fnl/conf/settings.fnl | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) (limited to 'mut') diff --git a/mut/neovim/.hotpot.lua b/mut/neovim/.hotpot.lua index 4b1d7f7..118f0ac 100644 --- a/mut/neovim/.hotpot.lua +++ b/mut/neovim/.hotpot.lua @@ -1,10 +1,10 @@ return { build = { {verbose = false}, - -- This will only compile init.fnl, all other fnl/ files will behave as normal. {"fnl/**/*macro*.fnl", false}, -- dont compile macro files {"init.fnl", true}, {"fnl/conf/**/*.fnl", true}, + -- This will only compile init.fnl, all other fnl/ files will behave as normal. -- Or you could enable other patterns too, -- {"colors/*.fnl", true}, -- {"fnl/**/*.fnl", true}, diff --git a/mut/neovim/fnl/conf/init.fnl b/mut/neovim/fnl/conf/init.fnl index 68cc26e..151f829 100644 --- a/mut/neovim/fnl/conf/init.fnl +++ b/mut/neovim/fnl/conf/init.fnl @@ -27,7 +27,7 @@ (map :n :l ":lclose") (map :n : ":cprev") (map :n : ":cnext") - (map :n : ":Compile ") + (map :n : ":Compile") (map :n : ":Recompile") (map :n "[q" ":cprevious") (map :n "]q" ":cnext") @@ -76,10 +76,8 @@ (local title (table.concat cmd " ")) (vim.fn.setqflist [] " " {: title}) (local add2qf (qf (vim.fn.getqflist {:id 0 :title 1}))) - (set - last_job - {: cmd - :id (vim.fn.jobstart + (local id + (vim.fn.jobstart cmd {:on_stdout (fn [id data] (if data @@ -89,7 +87,11 @@ (add2qf data))) :on_exit (fn [id rc] (if (= rc 0) - (vim.cmd ":cope")))})}))) + (vim.cmd ":cope")))})) + (set + last_job + {: cmd + : id}))) (vim.api.nvim_create_user_command :Compile diff --git a/mut/neovim/fnl/conf/settings.fnl b/mut/neovim/fnl/conf/settings.fnl index f7b52a6..e670010 100644 --- a/mut/neovim/fnl/conf/settings.fnl +++ b/mut/neovim/fnl/conf/settings.fnl @@ -44,7 +44,7 @@ splitbelow on magic on showbreak "+++" - listchars {:eol "󰁂"} + ; listchars {:eol "󰁂"} list on autoread on autoindent on -- cgit v1.2.3