Only use spaces instead of tabs for python files
This commit is contained in:
parent
48bee7cb27
commit
d54ba8d8c6
@ -1,4 +1,3 @@
|
|||||||
vim.g.cino = "N-s"
|
|
||||||
vim.o.textwidth = 80
|
vim.o.textwidth = 80
|
||||||
|
|
||||||
vim.g.cpp_attributes_highlight = true
|
vim.g.cpp_attributes_highlight = true
|
||||||
|
|||||||
6
ftplugin/python.lua
Normal file
6
ftplugin/python.lua
Normal 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'})
|
||||||
|
|
||||||
1
init.lua
1
init.lua
@ -6,7 +6,6 @@ vim.o.colorcolumn = '+1'
|
|||||||
-- Set indentation options
|
-- Set indentation options
|
||||||
vim.o.tabstop = 4
|
vim.o.tabstop = 4
|
||||||
vim.o.shiftwidth = 4
|
vim.o.shiftwidth = 4
|
||||||
vim.o.expandtab = true
|
|
||||||
|
|
||||||
-- Disable unused providers
|
-- Disable unused providers
|
||||||
vim.g.loaded_ruby_provider = 0
|
vim.g.loaded_ruby_provider = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user