update from lal-10

This commit is contained in:
Diego Ferando Carrión 2024-10-12 00:37:48 +02:00
parent d4e1ac9263
commit 75c598f22b
Signed by: CRThaze
GPG Key ID: 8279B79A1A7F8194
2 changed files with 43 additions and 0 deletions

View File

@ -1,6 +1,7 @@
require("crthaze.set")
require("crthaze.remap")
require("crthaze.lazy_init")
require("crthaze.langs")
local augroup = vim.api.nvim_create_augroup
local autocmd = vim.api.nvim_create_autocmd

View File

@ -0,0 +1,42 @@
vim.api.nvim_create_autocmd("FileType", {
-- This autocommand will only trigger if the buffer name matches the following patterns
pattern = "rust",
-- The autocommand will trigger the following lua function
callback = function()
vim.opt_local.colorcolumn = "100"
vim.opt_local.expandtab = false
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
end
})
vim.api.nvim_create_autocmd("FileType", {
-- This autocommand will only trigger if the buffer name matches the following patterns
pattern = "html",
-- The autocommand will trigger the following lua function
callback = function()
vim.opt_local.colorcolumn = "100"
end
})
vim.api.nvim_create_autocmd("FileType", {
-- This autocommand will only trigger if the buffer name matches the following patterns
pattern = "go",
-- The autocommand will trigger the following lua function
callback = function()
vim.opt_local.colorcolumn = "100"
end
})
vim.api.nvim_create_autocmd("FileType", {
-- This autocommand will only trigger if the buffer name matches the following patterns
pattern = "python",
-- The autocommand will trigger the following lua function
callback = function()
vim.opt_local.expandtab = true
vim.opt_local.tabstop = 4
vim.opt_local.softtabstop = 4
vim.opt_local.shiftwidth = 4
end
})