more minor stuff

This commit is contained in:
Alexander Gehrke 2023-09-08 12:14:51 +02:00
parent 41d779e3c7
commit 9bffccefba
4 changed files with 39 additions and 28 deletions

3
lua/.luarc.json Normal file
View file

@ -0,0 +1,3 @@
{
"workspace.checkThirdParty": false
}

View file

@ -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" },

View file

@ -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
View 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" })