diff --git a/profiles/school/default.nix b/profiles/school/default.nix index 2bbe875..df7acbb 100644 --- a/profiles/school/default.nix +++ b/profiles/school/default.nix @@ -1,6 +1,6 @@ { pkgs, ... }: { environment.systemPackages = with pkgs; [ - ungoogled-chromium + ungoogled-chromium ]; } diff --git a/profiles/sway/default.nix b/profiles/sway/default.nix index cd78dea..1d701bd 100644 --- a/profiles/sway/default.nix +++ b/profiles/sway/default.nix @@ -11,7 +11,7 @@ package = pkgs.redshift-wlr; brightness.night = "0.75"; extraOptions = [ - "-p redshift-wlr" + "-p redshift-wlr" ]; }; diff --git a/profiles/three_dee/default.nix b/profiles/three_dee/default.nix index 726fc9f..d1edd89 100644 --- a/profiles/three_dee/default.nix +++ b/profiles/three_dee/default.nix @@ -1,6 +1,6 @@ { pkgs, ... }: { environment.systemPackages = with pkgs; [ - blender + blender ]; } diff --git a/users/mae/default.nix b/users/mae/default.nix index 6094909..4eaf5c2 100644 --- a/users/mae/default.nix +++ b/users/mae/default.nix @@ -1,7 +1,7 @@ { pkgs, ... }: { home-manager.users.mae = { - imports = [ ../profiles/git ../profiles/zsh ]; + imports = [ ../profiles/git ../profiles/zsh ../profiles/neovim ]; home.packages = with pkgs; [ arc-theme ]; diff --git a/users/mae/vim.nix b/users/mae/vim.nix deleted file mode 100644 index fe9538e..0000000 --- a/users/mae/vim.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ pkgs, ... }: -{ - enable = true; - vimdiffAlias = true; - withNodeJs = true; - - plugins = with pkgs.vimPlugins; [ - { - plugin = coc-nvim; - config = '' - nmap (coc-rename) - - inoremap pumvisible() ? "\" : "\" - inoremap pumvisible() ? "\" : "\" - - " Remap and for scroll float windows/popups. - if has('nvim-0.4.0') || has('patch-8.2.0750') - nnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" - nnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" - inoremap coc#float#has_scroll() ? "\=coc#float#scroll(1)\" : "\" - inoremap coc#float#has_scroll() ? "\=coc#float#scroll(0)\" : "\" - vnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" - vnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" - endif - ''; - } - fzf-vim - { - plugin = iceberg-vim; - config = "colorscheme iceberg"; - } - vim-sleuth - coc-json - coc-html - coc-tsserver - neoformat - undotree - { - plugin = vim-jsdoc; - config = '' - let g:jsdoc_formatter = "tsdoc" - let g:typescript_indent_disable = 1 - ''; - } - ]; - extraConfig = '' - set background=dark - set termguicolors - - set ic - set number - set autoindent - - set completeopt=menuone,noinsert,noselect - set shortmess+=c - ''; -} diff --git a/users/profiles/neovim/default.nix b/users/profiles/neovim/default.nix new file mode 100644 index 0000000..d960e18 --- /dev/null +++ b/users/profiles/neovim/default.nix @@ -0,0 +1,59 @@ +{ pkgs, ... }: +programs.zsh = { +{ +enable = true; +vimdiffAlias = true; +withNodeJs = true; + +plugins = with pkgs.vimPlugins; [ +{ +plugin = coc-nvim; +config = '' + nmap (coc-rename) + + inoremap pumvisible() ? "\" : "\" + inoremap pumvisible() ? "\" : "\" + + " Remap and for scroll float windows/popups. + if has('nvim-0.4.0') || has('patch-8.2.0750') + nnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" + nnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" + inoremap coc#float#has_scroll() ? "\=coc#float#scroll(1)\" : "\" + inoremap coc#float#has_scroll() ? "\=coc#float#scroll(0)\" : "\" + vnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" + vnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" + endif + ''; +} +fzf-vim +{ +plugin = iceberg-vim; +config = "colorscheme iceberg"; +} +vim-sleuth +coc-json +coc-html +coc-tsserver +neoformat +undotree +{ +plugin = vim-jsdoc; +config = '' + let g:jsdoc_formatter = "tsdoc" + let g:typescript_indent_disable = 1 + ''; +} +]; +extraConfig = '' + set background=dark + set termguicolors + + set ic + set number + set autoindent + + set completeopt=menuone,noinsert,noselect + set shortmess+=c + ''; +}; +} diff --git a/users/profiles/zsh/default.nix b/users/profiles/zsh/default.nix index 09b8ce2..2c8c333 100644 --- a/users/profiles/zsh/default.nix +++ b/users/profiles/zsh/default.nix @@ -10,19 +10,19 @@ ]; }; initExtraFirst = '' - if [ -z "$TMUX" ] && [[ $- == *i* ]] - then - (tmux ls | grep -vq attached && tmux at) || tmux - exit - fi + if [ -z "$TMUX" ] && [[ $- == *i* ]] + then + (tmux ls | grep -vq attached && tmux at) || tmux + exit + fi - ${builtins.readFile ./p10k.zsh.initfirst} + ${builtins.readFile ./p10k.zsh.initfirst} ''; initExtra = '' - source "${pkgs.fzf}/share/fzf/key-bindings.zsh" - source "${pkgs.fzf}/share/fzf/completion.zsh" + source "${pkgs.fzf}/share/fzf/key-bindings.zsh" + source "${pkgs.fzf}/share/fzf/completion.zsh" - ${builtins.readFile ./p10k.zsh} + ${builtins.readFile ./p10k.zsh} ''; }; }