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>", {
|
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,
|
||||||
})
|
})
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue