From d4f6dd2612ce27e7df99f915e4f77c8f1ad994f8 Mon Sep 17 00:00:00 2001 From: "Lucas F." Date: Thu, 12 Dec 2024 18:38:36 -0300 Subject: [PATCH] feature: add go to definition helper --- lua/helpers.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/helpers.lua b/lua/helpers.lua index c6d301f..678915c 100644 --- a/lua/helpers.lua +++ b/lua/helpers.lua @@ -158,6 +158,11 @@ function M.compile_sass() end end +function M.go_to_definition() + vim.cmd("vsplit") + vim.lsp.buf.definition() +end + return M -- vim: ts=4 sts=4 sw=4 expandtab