summaryrefslogtreecommitdiff
path: root/.config/nvim_old/ftplugin/python.lua
blob: 3fbcec47a08ac89e530d2ce16aef259ac8c7925e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
local indent_size = 4
local use_tabs = false

local settings = string.format("setlocal softtabstop=%s tabstop=%s shiftwidth=%s", indent_size, indent_size, indent_size)

if use_tabs == true then
  settings = settings .. " noexpandtab"
else
  settings = settings .. " expandtab"
end

vim.cmd(settings)