diff --git a/modules/home/programs/nixvim/autocmd.nix b/modules/home/programs/nixvim/autocmd.nix index 04e90fa..9e5d972 100755 --- a/modules/home/programs/nixvim/autocmd.nix +++ b/modules/home/programs/nixvim/autocmd.nix @@ -1,13 +1,6 @@ -{ ... }: { +{ pkgs, self, ... }: { programs.nixvim = { autoCmd = [ - { - command = - "FloatermNew --wintype=float --name=shadeterm --position=topright --autoclose=0 --silent --cwd= --titleposition=left zsh"; - event = [ "VimEnter" ]; - pattern = [ "*" ]; - desc = "Create a floating terminal, placed in the top right"; - } { command = "silent! mkview"; event = [ "BufWinLeave" ]; @@ -15,12 +8,6 @@ desc = "Save session window settings to be loaded next time the file is opened"; } - { - command = "silent! !aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &"; - event = [ "BufWinLeave" ]; - pattern = [ "*" ]; - desc = "Play a neat little sound effect when you close neovim"; - } { command = "silent! loadview"; event = [ "BufWinEnter" ]; @@ -28,12 +15,6 @@ desc = "Load previous session window settings for the opened file (folds, cursor pos, etc)"; } - { - command = "setlocal textwidth=135"; - event = [ "BufWinEnter" "BufEnter" ]; - pattern = [ "*.md" "*.wiki" "*.txt" ]; - desc = "Set automatic linebreaks in plain text file formats"; - } ]; }; }