This commit is contained in:
sadanslargehole 2024-05-25 21:55:16 -04:00
parent 66faf984c1
commit 378e25338a
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800
2 changed files with 9 additions and 3 deletions

View file

@ -60,6 +60,9 @@ vim.keymap.set("n", "<leader>/", ":call eregex#toggle()<CR>", {
vim.keymap.set("n", "<leader>w", ":SudaWrite<CR>", { vim.keymap.set("n", "<leader>w", ":SudaWrite<CR>", {
noremap = true, noremap = true,
}) })
vim.keymap.set("v", "<leader>h", ":S/", {
noremap = true,
})
vim.keymap.set("n", "<leader>h", ":%S/", { vim.keymap.set("n", "<leader>h", ":%S/", {
noremap = true, noremap = true,
}) })

View file

@ -47,8 +47,11 @@ local function setupJDTLS()
-- } -- }
-- -- vim.list_extend(bundles, vim.split(vim.fn.glob(vim.fn.stdpath 'config' .. '/resources/vscode-java-test-main/server/*.jar', true), '\n')) -- -- vim.list_extend(bundles, vim.split(vim.fn.glob(vim.fn.stdpath 'config' .. '/resources/vscode-java-test-main/server/*.jar', true), '\n'))
local function makeandgetpath() local function makeandgetpath()
local root = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}); local root = require("jdtls.setup").find_root({ ".git", "mvnw", "gradlew" })
local path = root .. "./data" if root == nil then
return nil
end
local path = root .. "./data"
os.execute("mkdir -p " .. path) os.execute("mkdir -p " .. path)
return path return path
end end
@ -75,7 +78,7 @@ local function setupJDTLS()
makeandgetpath(), makeandgetpath(),
}, },
root_dir = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}), root_dir = require("jdtls.setup").find_root({ ".git", "mvnw", "gradlew" }),
-- Further configuration -- Further configuration
settings = { settings = {