From eace6b667462fe6d8e247cc299e40cd0dd6a1662 Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Fri, 5 Jul 2024 06:59:04 +0700 Subject: [PATCH] add: default tab 4 --- lua/plugins/java.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lua/plugins/java.lua b/lua/plugins/java.lua index d6e1ff5..600ac10 100644 --- a/lua/plugins/java.lua +++ b/lua/plugins/java.lua @@ -75,11 +75,12 @@ if pcode.active_java_config.active then } end, config = function(_, opts) - vim.opt_local.shiftwidth = 4 - vim.opt_local.tabstop = 4 - vim.opt_local.softtabstop = 4 - vim.opt_local.ts = 4 - vim.opt_local.expandtab = true + local opt = vim.opt + opt.shiftwidth = 4 + opt.tabstop = 4 + opt.softtabstop = 4 + opt.ts = 4 + opt.expandtab = true local mason_registry = require("mason-registry") local bundles = {} ---@type string[]