Skip to content
The Chat Archive
gpt-3.5-turbo-0301· OpenAI WildChat-4.8M (AI2)

use tab instead of spaces only in python. i have an init.lua file in my ~/.config/nvim

  1. User

    use tab instead of spaces only in python. i have an init.lua file in my ~/.config/nvim

  2. Assistant

    As an AI language model, I don't have access to your file system. However, here's how you can use tab instead of spaces only in Python:

    1. Open your Python file in your preferred text editor.
    2. Find the settings for tab size and indentation.
    3. Change the tab size to your desired value (usually 4 spaces).
    4. Set the indentation to use tabs instead of spaces.
    5. Save the changes to the file.

    If you're using Neovim, you can add the following line to your init.lua file:

    vim.cmd('set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab')
    

    This will set the tab size to 4 and make sure indentations use tabs instead of spaces.