Skip to content

Commit

Permalink
home (nvim): Configure tab to be four spaces for JVM languages
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Nov 27, 2024
1 parent b70d095 commit 527ac6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions home/terminal/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ in {
swapfile = false;
};
autoCmd = [
{
event = ["BufNewFile" "BufRead"];
pattern = ["*.java" "*.kt" "*.kts" "*.groovy"];
callback.__raw =
# lua
''
function ()
vim.opt_local.tabstop = 4
vim.opt_local.softtabstop = 4
end
'';
}
{
event = ["BufNewFile" "BufRead"];
pattern = ["*.log"];
Expand Down

0 comments on commit 527ac6f

Please sign in to comment.