commit 085e4ca1bfc13fcb985417a40f3090059f3171bd
parent c5c286ac8b64823545b9466a5328b22a59386ee3
Author: Chris Bracken <chris@bracken.jp>
Date: Thu, 1 May 2025 14:51:47 -0700
nvim: colorcolumn=100, indent=2 for Swift
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.config/nvim/lua/config/colorscheme.lua b/.config/nvim/lua/config/colorscheme.lua
@@ -30,7 +30,7 @@ if vim.fn.has('termguicolors') == 1 then
command = 'set colorcolumn=80 | set textwidth=80'
})
vim.api.nvim_create_autocmd({'BufEnter', 'InsertLeave'}, {
- pattern = {'*.java', '*.m', '*.mm'},
+ pattern = {'*.java', '*.m', '*.mm', '*.swift'},
command = 'set colorcolumn=100 | set textwidth=100'
})
end
diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua
@@ -23,7 +23,7 @@ vim.opt.expandtab = true -- Insert spaces in place of tabs.
-- Fix Python's indent overrides.
vim.api.nvim_create_autocmd('FileType', {
- pattern = 'python',
+ pattern = {'python', 'swift'},
callback = function()
vim.opt_local.tabstop = 2
vim.opt_local.shiftwidth = 2