mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nix): migrate editorconfig
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
~/.config/tmux/tmux-nerd-font-window-name.yml: tmux/tmux-nerd-font-window-name.yml
|
~/.config/tmux/tmux-nerd-font-window-name.yml: tmux/tmux-nerd-font-window-name.yml
|
||||||
~/.config/zed/settings.json: zed/settings.json
|
~/.config/zed/settings.json: zed/settings.json
|
||||||
~/.curlrc: url/curlrc
|
~/.curlrc: url/curlrc
|
||||||
~/.editorconfig: style/editorconfig
|
|
||||||
~/.gitconfig: git/gitconfig
|
~/.gitconfig: git/gitconfig
|
||||||
~/.gitignore: git/gitignore
|
~/.gitignore: git/gitignore
|
||||||
~/.gitmux.conf: tmux/gitmux.conf
|
~/.gitmux.conf: tmux/gitmux.conf
|
||||||
|
|||||||
2
Brewfile
2
Brewfile
@@ -124,8 +124,6 @@ brew "fbthrift"
|
|||||||
brew "fb303"
|
brew "fb303"
|
||||||
# Shared library for Watchman and Eden projects
|
# Shared library for Watchman and Eden projects
|
||||||
brew "edencommon"
|
brew "edencommon"
|
||||||
# Maintain consistent coding style between multiple editors
|
|
||||||
brew "editorconfig"
|
|
||||||
# LLVM bytecode to JavaScript compiler
|
# LLVM bytecode to JavaScript compiler
|
||||||
brew "emscripten"
|
brew "emscripten"
|
||||||
# Tools to convert fonts from OTF/TTF to EOT format
|
# Tools to convert fonts from OTF/TTF to EOT format
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ in
|
|||||||
./asdf
|
./asdf
|
||||||
./bat
|
./bat
|
||||||
./ctags
|
./ctags
|
||||||
|
./editorconfig
|
||||||
./gnupg
|
./gnupg
|
||||||
./hammerspoon
|
./hammerspoon
|
||||||
./karabiner
|
./karabiner
|
||||||
|
|||||||
24
nix/home/editorconfig/default.nix
Normal file
24
nix/home/editorconfig/default.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
editorconfig = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"*" = {
|
||||||
|
charset = "utf-8";
|
||||||
|
end_of_line = "lf";
|
||||||
|
indent_style = "tab";
|
||||||
|
insert_final_newline = true;
|
||||||
|
trim_trailing_whitespace = true;
|
||||||
|
};
|
||||||
|
"*.{md,markdown,pandoc}" = {
|
||||||
|
trim_trailing_whitespace = false;
|
||||||
|
};
|
||||||
|
"Makefile" = {
|
||||||
|
indent_style = "tab";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = [ pkgs.editorconfig-core-c ];
|
||||||
|
}
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# http://editorconfig.org
|
|
||||||
|
|
||||||
# Root file
|
|
||||||
root = true
|
|
||||||
|
|
||||||
# Unix-style newlines with a newline ending every file
|
|
||||||
[*]
|
|
||||||
charset = utf-8
|
|
||||||
end_of_line = lf
|
|
||||||
indent_style = tab
|
|
||||||
insert_final_newline = true
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
|
|
||||||
[*.{md,markdown,pandoc}]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
|
|
||||||
[Makefile]
|
|
||||||
indent_style = tab
|
|
||||||
Reference in New Issue
Block a user