more minor stuff
This commit is contained in:
parent
41d779e3c7
commit
9bffccefba
3
lua/.luarc.json
Normal file
3
lua/.luarc.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"workspace.checkThirdParty": false
|
||||||
|
}
|
|
@ -20,6 +20,7 @@ return {
|
||||||
{ ',gs', builtin.git_status, desc = "Git status" },
|
{ ',gs', builtin.git_status, desc = "Git status" },
|
||||||
{ ',s', builtin.lsp_dynamic_workspace_symbols, desc = "Symbols" },
|
{ ',s', builtin.lsp_dynamic_workspace_symbols, desc = "Symbols" },
|
||||||
{ 'g/', builtin.live_grep, desc = "Live grep" },
|
{ 'g/', builtin.live_grep, desc = "Live grep" },
|
||||||
|
{ 'g:', builtin.command_history, desc = "Command history" },
|
||||||
{ '<C-/>', builtin.current_buffer_fuzzy_find, desc = "Fuzzy find" },
|
{ '<C-/>', builtin.current_buffer_fuzzy_find, desc = "Fuzzy find" },
|
||||||
{ '<leader>*', builtin.grep_string, desc = "Find at cursor" },
|
{ '<leader>*', builtin.grep_string, desc = "Find at cursor" },
|
||||||
{ 'gb', builtin.buffers, desc = "Switch buffer" },
|
{ 'gb', builtin.buffers, desc = "Switch buffer" },
|
||||||
|
|
|
@ -15,11 +15,11 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
char = "",
|
char = "",
|
||||||
char_highlight_list = {
|
char_highlight_list = {
|
||||||
"Normal",
|
"Whitespace",
|
||||||
"CursorLine",
|
"CursorLine",
|
||||||
},
|
},
|
||||||
space_char_highlight_list = {
|
space_char_highlight_list = {
|
||||||
"Normal",
|
"Whitespace",
|
||||||
"CursorLine",
|
"CursorLine",
|
||||||
},
|
},
|
||||||
show_trailing_blankline_indent = false,
|
show_trailing_blankline_indent = false,
|
||||||
|
|
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…
Reference in a new issue