more minor stuff
This commit is contained in:
parent
41d779e3c7
commit
9bffccefba
4 changed files with 39 additions and 28 deletions
7
plugin/scaladeps.lua
Normal file
7
plugin/scaladeps.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
local sbtToScalaCLI = function()
|
||||
vim.cmd[[s/\s*libraryDependencies\s*+=\s*/\/\/> using dep /]]
|
||||
vim.cmd[[s/" \(%\+\) "/\=repeat(":", strlen(submatch(1)))/g]]
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<leader>dep", sbtToScalaCLI, { noremap = true, silent = true, desc = "Convert sbt dependency to Scala CLI" })
|
Loading…
Add table
Add a link
Reference in a new issue