mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
code cleanup
This commit is contained in:
parent
2b4768b21d
commit
bc0ef751e8
3 changed files with 3 additions and 27 deletions
|
|
@ -29,28 +29,3 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
|||
vim.cmd "colorscheme one-nvim"
|
||||
vim.o.background = "light"
|
||||
vim.opt.guifont = { "Cascadia Code:h15" }
|
||||
|
||||
vim.cmd("filetype plugin on")
|
||||
vim.g.sleuth_default_indent = "2"
|
||||
|
||||
-- Tabwidth and shit
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = {
|
||||
'lua', 'scala'
|
||||
},
|
||||
callback = function()
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.tabstop = 2
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = {
|
||||
'rust', 'fish', 'python'
|
||||
},
|
||||
callback = function()
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.tabstop = 4
|
||||
end,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue