Add .editorconfig
This commit is contained in:
parent
85f0b10c39
commit
3d68f6fb65
4 changed files with 25 additions and 6 deletions
1
config/nvim/after/ftplugin/editorconfig.lua
Normal file
1
config/nvim/after/ftplugin/editorconfig.lua
Normal file
|
@ -0,0 +1 @@
|
|||
vim.bo.commentstring = '# %s'
|
|
@ -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
16
home/editorconfig
Normal 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
|
13
install.sh
13
install.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue