feat(lsp): add <leader><CR> to run go main % (only for Go files)
Keybind is added automatically on gopls attach
This commit is contained in:
parent
61b29c4ba6
commit
dba90a94cf
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ return {
|
|||
end,
|
||||
})
|
||||
|
||||
-- run the current go file in a vertical split terminal pane
|
||||
vim.keymap.set("n", "<leader><CR>", "<cmd>vsplit term://go run %<CR>")
|
||||
|
||||
-- Auto organize imports on save
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
buffer = bufnr,
|
||||
|
|
|
|||
Loading…
Reference in a new issue