Only use spaces instead of tabs for python files

This commit is contained in:
Steins7 2023-02-11 14:22:58 +01:00
parent 48bee7cb27
commit d54ba8d8c6
3 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,3 @@
vim.g.cino = "N-s"
vim.o.textwidth = 80
vim.g.cpp_attributes_highlight = true

6
ftplugin/python.lua Normal file
View File

@ -0,0 +1,6 @@
vim.o.textwidth = 80
vim.o.expandtab = true
-- remove white spaces at end of line
vim.api.nvim_create_autocmd({'BufWritePre'}, {command = '%s;\\s\\+$;;e'})

View File

@ -6,7 +6,6 @@ vim.o.colorcolumn = '+1'
-- Set indentation options
vim.o.tabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
-- Disable unused providers
vim.g.loaded_ruby_provider = 0