Add .editorconfig

This commit is contained in:
Fernando Schauenburg 2024-07-17 21:56:05 +02:00
parent 85f0b10c39
commit 3d68f6fb65
4 changed files with 25 additions and 6 deletions

View file

@ -0,0 +1 @@
vim.bo.commentstring = '# %s'

View file

@ -7,6 +7,7 @@ M.setup = function()
[".*/ssh/config"] = "sshconfig",
[".*/git/config"] = "gitconfig",
[".*gitconfig"] = "gitconfig",
[".*/home/editorconfig"] = "editorconfig",
[".*config/zsh/.*"] = "zsh",
},
}

16
home/editorconfig Normal file
View file

@ -0,0 +1,16 @@
root = true
[*]
insert_final_newline = true
[*.cs]
# Prefer expression body for methods when they will be a single line, but never
# warn me either way.
dotnet_diagnostic.IDE0022.severity = none
csharp_style_expression_bodied_methods = when_on_single_line
# Allow me to use either file-scoped or block-scoped namespace declarations
# without warnings.
dotnet_diagnostic.IDE0160.severity = none
dotnet_diagnostic.IDE0161.severity = none

View file

@ -135,12 +135,13 @@ execute() {
make_dir "$DESTDIR/.local/share/zsh/"
heading 'create links'
make_link "$DESTDIR/.XCompose" "$dotfiles/home/XCompose"
make_link "$DESTDIR/.bin" "$dotfiles/bin"
make_link "$DESTDIR/.config" "$dotfiles/config"
make_link "$DESTDIR/.hushlogin" "$dotfiles/home/hushlogin"
make_link "$DESTDIR/.ssh/config" "$dotfiles/ssh/config"
make_link "$DESTDIR/.zshenv" "$dotfiles/home/zshenv"
make_link "$DESTDIR/.XCompose" "$dotfiles/home/XCompose"
make_link "$DESTDIR/.bin" "$dotfiles/bin"
make_link "$DESTDIR/.config" "$dotfiles/config"
make_link "$DESTDIR/.editorconfig" "$dotfiles/home/editorconfig"
make_link "$DESTDIR/.hushlogin" "$dotfiles/home/hushlogin"
make_link "$DESTDIR/.ssh/config" "$dotfiles/ssh/config"
make_link "$DESTDIR/.zshenv" "$dotfiles/home/zshenv"
heading 'git user configuration'
make_git_user_config