delete open_terminal util function
This commit is contained in:
@@ -45,8 +45,8 @@ vim.cmd("imap <C-_> <ESC>gccA")
|
||||
|
||||
-- Terminal
|
||||
tmap("<ESC>", "<C-\\><C-n>")
|
||||
nmap("Th", ":lua require('user.utils').open_terminal()<CR>")
|
||||
nmap("Tv", ":lua require('user.utils').open_terminal(true)<CR>")
|
||||
nmap("Th", ":split | :term<CR>")
|
||||
nmap("Tv", ":vs | :term<CR>")
|
||||
|
||||
-- Tabs
|
||||
nmap("H", ":tabprev<CR>")
|
||||
|
||||
@@ -114,16 +114,6 @@ M.copy_diagnostic_message = function()
|
||||
print("Diagnostic message was yanked")
|
||||
end
|
||||
|
||||
M.open_terminal = function(vertically)
|
||||
vertically = vertically or false
|
||||
|
||||
if vertically then
|
||||
vim.cmd(":vs | :term")
|
||||
else
|
||||
vim.cmd(":split | :term")
|
||||
end
|
||||
end
|
||||
|
||||
M.get_definitions = function()
|
||||
local params = vim.lsp.util.make_position_params()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user