Update set_audio_sink add copilot to vim and nvim

This commit is contained in:
Roland Thomas Jr 2024-03-22 12:07:55 -04:00
parent cba8a15157
commit 5c549a577f
Signed by: roland
GPG Key ID: 7C3C2B085A4C2872
3 changed files with 34 additions and 1 deletions

View File

@ -28,6 +28,8 @@ Plug 'xuhdev/vim-latex-live-preview'
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'takac/vim-hardtime' Plug 'takac/vim-hardtime'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'github/copilot.vim'
call plug#end() call plug#end()
colorscheme nord colorscheme nord
@ -39,3 +41,18 @@ let g:lightline = {
autocmd Filetype tex setl updatetime=1 autocmd Filetype tex setl updatetime=1
let g:livepreview_previewer = 'zathura' let g:livepreview_previewer = 'zathura'
let g:hardtime_default_on = 1 let g:hardtime_default_on = 1
let g:copilot_enable = 1
let g:copilot_filetypes = {
\ 'python': v:true,
\ 'c': v:true,
\ 'cpp': v:true,
\ 'java': v:true,
\ 'javascript': v:true,
\ 'typescript': v:true,
\ 'go': v:true,
\ 'rust': v:true,
\ 'html': v:true,
\ 'css': v:true,
\ 'perl': v:true
\}

View File

@ -10,7 +10,7 @@ if [ "$DISPLAY" = ":0" ]; then
# if ! pactl set-default-sink alsa_output.0.hdmi-stereo; then # if ! pactl set-default-sink alsa_output.0.hdmi-stereo; then
# pactl set-default-sink alsa_output.1.hdmi-stereo # pactl set-default-sink alsa_output.1.hdmi-stereo
# fi # fi
pactl set-default-sink alsa_output.1.analog-stereo pactl set-default-sink alsa_output.0.analog-stereo
echo "$DISPLAY set audio" echo "$DISPLAY set audio"
elif [ "$DISPLAY" = ":10.0" ]; then elif [ "$DISPLAY" = ":10.0" ]; then
pactl set-default-sink xrdp-sink pactl set-default-sink xrdp-sink

16
.vimrc
View File

@ -29,6 +29,7 @@ Plug 'rust-lang/rust.vim'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'takac/vim-hardtime' Plug 'takac/vim-hardtime'
Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'github/copilot.vim'
call plug#end() call plug#end()
colorscheme nord colorscheme nord
@ -40,3 +41,18 @@ let g:lightline = {
autocmd Filetype tex setl updatetime=1 autocmd Filetype tex setl updatetime=1
let g:livepreview_previewer = 'zathura' let g:livepreview_previewer = 'zathura'
let g:hardtime_default_on = 1 let g:hardtime_default_on = 1
let g:copilot_enable = 1
let g:copilot_filetypes = {
\ 'python': v:true,
\ 'c': v:true,
\ 'cpp': v:true,
\ 'java': v:true,
\ 'javascript': v:true,
\ 'typescript': v:true,
\ 'go': v:true,
\ 'rust': v:true,
\ 'html': v:true,
\ 'css': v:true,
\ 'perl': v:true
\}