filetypes and save file position

This commit is contained in:
jhe 2024-05-22 16:15:11 +02:00
parent 1d6812e2f0
commit 6e0b9477e5
No known key found for this signature in database
GPG Key ID: 10FFC60F6B8DC9B7
6 changed files with 16 additions and 14 deletions

4
ftplugin/c.lua Normal file
View File

@ -0,0 +1,4 @@
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true

View File

@ -1,3 +1,4 @@
vim.o.tabstop = 4 vim.opt.tabstop = 2
vim.o.shiftwidth = 4 vim.opt.softtabstop = 2
vim.o.expandtab = true vim.opt.shiftwidth = 2
vim.opt.expandtab = true

View File

@ -1,4 +0,0 @@
if (true) {
console.log("Hello world");
}

View File

@ -1,4 +0,0 @@
if True:
print("Hello world")

View File

@ -1,3 +1,4 @@
vim.o.tabstop = 2 vim.opt.tabstop = 4
vim.o.shiftwidth = 2 vim.opt.softtabstop = 4
vim.o.expandtab = true vim.opt.shiftwidth = 4
vim.opt.expandtab = true

4
ftplugin/typescript.lua Normal file
View File

@ -0,0 +1,4 @@
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true