diff --git a/.treefmt.toml b/.treefmt.toml index 793db782..49dabddf 100644 --- a/.treefmt.toml +++ b/.treefmt.toml @@ -8,7 +8,8 @@ excludes = [ "*.ogg", "*.lock", "*.conf", - "License" + "License", + "home/file/jetbrains/ideavimrc" ] [formatter.nixfmt-rfc-style] diff --git a/home/file/default.nix b/home/file/default.nix index 646ee5fc..13ac6187 100644 --- a/home/file/default.nix +++ b/home/file/default.nix @@ -11,7 +11,6 @@ let foot = import ./foot args; fuzzel = import ./fuzzel args; git = import ./git args; - jetbrains = import ./jetbrains args; keyd = import ./keyd args; mako = import ./mako args; mangohud = import ./mangohud args; @@ -47,7 +46,7 @@ in ".config/yazi/yazi.toml".source = yazi.yazi; ".editorconfig".source = editor.file; ".gitconfig".source = git.file; - ".ideavimrc".text = jetbrains.ideavimrc; + ".ideavimrc".source = ./jetbrains/ideavimrc; ".nix".source = self; ".nixpkgs".source = inputs.nixpkgs; ".parallel/will-cite".text = ""; diff --git a/home/file/jetbrains/default.nix b/home/file/jetbrains/default.nix deleted file mode 100644 index 7d6fbf8b..00000000 --- a/home/file/jetbrains/default.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ ... }: -{ - ideavimrc = '' - " Plugins. - Plug 'tpope/vim-commentary' - Plug 'machakann/vim-highlightedyank' - " Plug 'junegunn/vim-easy-align' - - " General config. - set scrolloff=4 - set incsearch - set hlsearch - set clipboard=unnamedplus - set relativenumber - set number - - " Space as a leader. - nnoremap - let mapleader=" " - - " Align. ISSUE: Broken. - " vmap a (EasyAlign) - - " Sort. - vmap A :sort - ''; -} diff --git a/home/file/jetbrains/ideavimrc b/home/file/jetbrains/ideavimrc new file mode 100644 index 00000000..546da2bc --- /dev/null +++ b/home/file/jetbrains/ideavimrc @@ -0,0 +1,22 @@ +" Plugins. +Plug 'tpope/vim-commentary' +Plug 'machakann/vim-highlightedyank' +" Plug 'junegunn/vim-easy-align' + +" General config. +set scrolloff=4 +set incsearch +set hlsearch +set clipboard=unnamedplus +set relativenumber +set number + +" Space as a leader. +nnoremap +let mapleader=" " + +" Align. ISSUE: Broken. +" vmap a (EasyAlign) + +" Sort. +vmap A :sort