From 7fa1839df604ecefa61936a6db23254da9154426 Mon Sep 17 00:00:00 2001 From: foxora Date: Tue, 5 May 2026 19:47:49 +0100 Subject: [PATCH] changed toml indent to 2 --- .../programs/neovim/lua/lsp/indentation.lua | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/homes/modules/programs/neovim/lua/lsp/indentation.lua b/homes/modules/programs/neovim/lua/lsp/indentation.lua index 8516bad..7b396e8 100644 --- a/homes/modules/programs/neovim/lua/lsp/indentation.lua +++ b/homes/modules/programs/neovim/lua/lsp/indentation.lua @@ -6,6 +6,7 @@ vim.api.nvim_create_autocmd("FileType", { "css", "json", "haskell", + "toml", }, callback = function() vim.opt_local.shiftwidth = 2 @@ -29,14 +30,17 @@ vim.api.nvim_create_autocmd("User", { pattern = "TelescopePreviewerLoaded", callback = function(args) local ft = args.data.filetype - if vim.tbl_contains({ - "lua", - "nix", - "gleam", - "css", - "json", - "haskell", - }, ft) then + if + vim.tbl_contains({ + "lua", + "nix", + "gleam", + "css", + "json", + "haskell", + "toml", + }, ft) + then vim.bo.shiftwidth = 2 vim.bo.tabstop = 2 vim.bo.expandtab = true