Compare commits
No commits in common. "12b25aa2b49144940f8f37e3f3832ce98b6b062d" and "e2697f61fd340202bf7f38d1e50fd47143b5baf8" have entirely different histories.
12b25aa2b4
...
e2697f61fd
4 changed files with 5 additions and 32 deletions
|
@ -1,4 +1 @@
|
|||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.tw = 180
|
||||
vim.opt_local.colorcolumn = "+1"
|
||||
|
||||
|
|
1
ftplugin/java.vim
Normal file
1
ftplugin/java.vim
Normal file
|
@ -0,0 +1 @@
|
|||
set tw=120
|
|
@ -13,7 +13,7 @@ return {
|
|||
"godlygeek/tabular",
|
||||
"tpope/vim-sleuth",
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
{ "ixru/nvim-markdown", ft = "markdown" },
|
||||
"ixru/nvim-markdown",
|
||||
"KeitaNakamura/tex-conceal.vim",
|
||||
"skywind3000/asyncrun.vim",
|
||||
"airblade/vim-gitgutter",
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
return {
|
||||
{
|
||||
"mfussenegger/nvim-jdtls",
|
||||
ft = "java",
|
||||
config = function()
|
||||
local jdtls = require("jdtls")
|
||||
|
||||
|
@ -13,31 +12,8 @@ return {
|
|||
-- Path to your exported Eclipse/IntelliJ style xml
|
||||
local style_path = vim.fn.expand("~/.config/nvim/GoogleStyle.xml")
|
||||
|
||||
local java_home = os.getenv("NVIM_JDTLS_JAVA_HOME")
|
||||
|
||||
local config = {
|
||||
cmd = {
|
||||
java_home .. "/bin/java",
|
||||
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
|
||||
"-Dosgi.bundles.defaultStartLevel=4",
|
||||
"-Declipse.product=org.eclipse.jdt.ls.core.product",
|
||||
"-Dlog.protocol=true",
|
||||
"-Dlog.level=ALL",
|
||||
"-Xms1g",
|
||||
"--add-modules=ALL-SYSTEM",
|
||||
"--add-opens",
|
||||
"java.base/java.util=ALL-UNNAMED",
|
||||
"--add-opens",
|
||||
"java.base/java.lang=ALL-UNNAMED",
|
||||
"-jar",
|
||||
vim.fn.glob(
|
||||
vim.fn.stdpath("data") .. "/mason/packages/jdtls/plugins/org.eclipse.equinox.launcher_*.jar"
|
||||
),
|
||||
"-configuration",
|
||||
vim.fn.glob(vim.fn.stdpath("data") .. "/mason/packages/jdtls/config_mac"),
|
||||
"-data",
|
||||
vim.fn.expand("~/.cache/jdtls-workspace/") .. "/" .. root_dir:gsub(":", "_"),
|
||||
},
|
||||
cmd = { "jdtls" }, -- or path to your startup script
|
||||
root_dir = root_dir,
|
||||
settings = {
|
||||
java = {
|
||||
|
@ -187,7 +163,6 @@ return {
|
|||
|
||||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, {
|
||||
"jdtls",
|
||||
"stylua",
|
||||
"black",
|
||||
"clang-format",
|
||||
|
@ -215,4 +190,4 @@ return {
|
|||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue