Control snippets directory
This commit is contained in:
parent
5be65ef2da
commit
bcc6a42f1a
3 changed files with 20 additions and 0 deletions
17
nix/config/emacs/snippets/tsx-ts-mode/rnfc
Normal file
17
nix/config/emacs/snippets/tsx-ts-mode/rnfc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: react native functional component
|
||||
# key: rnfc
|
||||
# --
|
||||
import { Text, View } from "react-native";
|
||||
|
||||
const ${1:App} = () => {
|
||||
return (
|
||||
<View>
|
||||
<Text>$1</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
export default $1;
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
{ email }: { pkgs, ... }: {
|
||||
home.file.".emacs.d/early-init.el".source = ../config/emacs/early-init.el;
|
||||
home.file.".emacs.d/tree-sitter/libtree-sitter-swift.dylib".source = ../config/emacs/tree-sitter/libtree-sitter-swift.dylib;
|
||||
home.file.".emacs.d/snippets".source = ../config/emacs/snippets;
|
||||
|
||||
home.file.".clojure/deps.edn".source = ../config/clojure/deps.edn;
|
||||
|
||||
home.language = {
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ inputs.darwin.lib.darwinSystem {
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users."${username}" = home-manager-config;
|
||||
home-manager.backupFileExtension = "backup";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue