1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: use ftplugin for filetypes

This commit is contained in:
2023-09-15 18:25:47 +02:00
parent 1eb2af2098
commit 3605c38993
10 changed files with 61 additions and 119 deletions

View File

@@ -0,0 +1,7 @@
vim.api.nvim_create_autocmd({ 'VimLeave' },
{
command = '!cclear'
})
vim.o.textwidth = 80
vim.o.colorcolumn = "-0"

View File

@@ -0,0 +1,4 @@
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100
vim.o.colorcolumn = "-0"

View File

@@ -0,0 +1,4 @@
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100
vim.o.colorcolumn = "-0"

View File

@@ -0,0 +1,4 @@
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100
vim.o.colorcolumn = "-0"

View File

@@ -0,0 +1,9 @@
vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
{
callback = function() vim.o.foldenable = false end
})
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100
vim.o.colorcolumn = "-0"

View File

@@ -0,0 +1,4 @@
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 80
vim.o.colorcolumn = "-0"

View File

@@ -0,0 +1,4 @@
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 80
vim.o.colorcolumn = "-0"

View File

@@ -0,0 +1,9 @@
vim.api.nvim_create_autocmd({ 'VimLeave' },
{
command = '!texclear %'
})
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 80
vim.o.colorcolumn = "-0"