Skip to content

Commit

Permalink
home (nvim): Configure tabs instead of spaces for go code
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Nov 27, 2024
1 parent 527ac6f commit 1256872
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions home/terminal/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ in {
end
'';
}
{
event = ["BufNewFile" "BufRead"];
pattern = ["*.go"];
callback.__raw =
# lua
''
function ()
vim.opt_local.expandtab = false
end
'';
}
{
event = ["BufNewFile" "BufRead"];
pattern = ["*.log"];
Expand Down

0 comments on commit 1256872

Please sign in to comment.