aboutsummaryrefslogtreecommitdiffstats
path: root/after
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-04-16 00:10:13 +0200
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-04-16 00:10:13 +0200
commitac36631668ad3b53b140c8614136c76ac2794164 (patch)
tree95104ff4a8628c64796046bffcd737651e9fb01b /after
parent95c1ac78f0ad88fa0c7982d18f398e33839000b8 (diff)
downloadnvim-conf-ac36631668ad3b53b140c8614136c76ac2794164.tar.gz
nvim-conf-ac36631668ad3b53b140c8614136c76ac2794164.zip
some updates
Diffstat (limited to 'after')
-rw-r--r--after/ftplugin/go.vim2
-rw-r--r--after/plugin/rest.lua1
2 files changed, 3 insertions, 0 deletions
diff --git a/after/ftplugin/go.vim b/after/ftplugin/go.vim
index 52ba3ad..a03721a 100644
--- a/after/ftplugin/go.vim
+++ b/after/ftplugin/go.vim
@@ -1 +1,3 @@
set listchars=tab:\ \ ,trail:-
+set makeprg=go\ build
+set efm=%-G%f:%l:%c:W:\ %m,%-G%f:%l::W:\ %m,%f:%l:%c:%t:\ %m,%f:%l:%c::\ %m,%f:%l::%t:\ %m
diff --git a/after/plugin/rest.lua b/after/plugin/rest.lua
index baf4edd..f9417dd 100644
--- a/after/plugin/rest.lua
+++ b/after/plugin/rest.lua
@@ -32,6 +32,7 @@ vim.api.nvim_create_autocmd("FileType", {
local buff = tonumber(vim.fn.expand("<abuf>"), 10)
vim.keymap.set("n", "<leader>rn", rest_nvim.run, { noremap = true, buffer = buff })
vim.keymap.set("n", "<leader>rl", rest_nvim.last, { noremap = true, buffer = buff })
+ vim.keymap.set("n", "<leader>rp", function () rest_nvim.run(true) end, { noremap = true, buffer = buff })
end
})