mirror of
https://github.com/sadan4/nvim.git
synced 2024-11-16 22:34:39 -05:00
a
This commit is contained in:
parent
66faf984c1
commit
378e25338a
2 changed files with 9 additions and 3 deletions
|
@ -60,6 +60,9 @@ vim.keymap.set("n", "<leader>/", ":call eregex#toggle()<CR>", {
|
|||
vim.keymap.set("n", "<leader>w", ":SudaWrite<CR>", {
|
||||
noremap = true,
|
||||
})
|
||||
vim.keymap.set("v", "<leader>h", ":S/", {
|
||||
noremap = true,
|
||||
})
|
||||
vim.keymap.set("n", "<leader>h", ":%S/", {
|
||||
noremap = true,
|
||||
})
|
||||
|
|
|
@ -47,7 +47,10 @@ 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'))
|
||||
local function makeandgetpath()
|
||||
local root = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'});
|
||||
local root = require("jdtls.setup").find_root({ ".git", "mvnw", "gradlew" })
|
||||
if root == nil then
|
||||
return nil
|
||||
end
|
||||
local path = root .. "./data"
|
||||
os.execute("mkdir -p " .. path)
|
||||
return path
|
||||
|
@ -75,7 +78,7 @@ local function setupJDTLS()
|
|||
makeandgetpath(),
|
||||
},
|
||||
|
||||
root_dir = require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'}),
|
||||
root_dir = require("jdtls.setup").find_root({ ".git", "mvnw", "gradlew" }),
|
||||
|
||||
-- Further configuration
|
||||
settings = {
|
||||
|
|
Loading…
Reference in a new issue