From 12355b45deb941f50d0d8aac16b58a603f5c21f6 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 13 Feb 2023 03:22:10 +0000 Subject: [PATCH] feat(nvim): java indented by 4 spaces --- dot_config/nvim/ftplugin/java.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot_config/nvim/ftplugin/java.lua b/dot_config/nvim/ftplugin/java.lua index b0d1352..87804bb 100644 --- a/dot_config/nvim/ftplugin/java.lua +++ b/dot_config/nvim/ftplugin/java.lua @@ -1,3 +1,9 @@ +-- https://sookocheff.com/post/vim/neovim-java-ide/ :bless: + +vim.opt.shiftwidth = 4 +vim.opt.tabstop = 4 +vim.opt.softtabstop = 4 + local root_markers = { "gradlew", "mvnw", ".git", "pom.xml", "build.gradle" } local root_dir = require("jdtls.setup").find_root(root_markers) local workspace_folder = os.getenv("HOME") .. "/.local/share/eclipse/" .. vim.fn.fnamemodify(root_dir, ":p:h:t")