Skip to content
Permalink
Browse files

Style changes

  • Loading branch information...
Raggaer committed May 1, 2019
1 parent 6d7b8c9 commit 8f7946cb28836067c3eaddab6a369b0da667431e
Showing with 31 additions and 21 deletions.
  1. +14 −12 .config/i3/config
  2. +17 −9 .vimrc
@@ -18,6 +18,9 @@ set $workspaceDiscord " Discord"

set $mod Mod1

# Use Mouse+$mod to drag floating windows
floating_modifier $mod

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Roboto 10
@@ -101,16 +104,16 @@ bindsym $mod+a focus parent

# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "I"
set $ws2 "II"
set $ws3 "III"
set $ws4 "IV"
set $ws5 "V"
set $ws6 "VI"
set $ws7 "VII"
set $ws8 "VIII"
set $ws9 "IX"
set $ws10 "X"
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"

# switch to workspace
bindsym $mod+1 workspace $ws1
@@ -203,8 +206,7 @@ hide_edge_borders both

for_window [class="Spotify"] move to workspace $workspaceSpotify

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# Start i3bar to display a workspace bar (plus the system information i3status finds out, if available)
bar {
tray_padding 3
status_command py3status -c ~/.config/i3status/config
26 .vimrc
@@ -4,14 +4,6 @@ let g:lightline = {
\}
set laststatus=2

" Add GoExecute function to execute builded binaries under Window
function GoExecute()
let dir = getcwd()
let files = split(dir, "/")
execute '!go build files[-1]
endfunction
nnoremap <C-e> :call GoExecute()<CR>

" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')

@@ -32,6 +24,7 @@ Plug 'itchyny/lightline.vim'
Plug 'dart-lang/dart-vim-plugin'
Plug 'StanAngeloff/php.vim'
Plug 'dylanaraps/wal.vim'
Plug 'nathanaelkane/vim-indent-guides'

if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
@@ -58,7 +51,7 @@ nnoremap <C-W> <C-W><C-W>
let NERDTreeShowHidden = 1

" Set color scheme.
colorscheme wal
colorscheme synthetic

" Map CTRL O to toggle NERDTree in the directory of the current buffer
map <C-o> :NERDTreeToggle %<CR>
@@ -104,6 +97,21 @@ let g:go_highlight_fields = 1
let g:neocomplete#enable_at_startup = 1
let g:neocomplete#enable_auto_select = 1

" Autocomplete key-mappings
inoremap <expr><C-g> neocomplete#undo_completion()
inoremap <expr><C-l> neocomplete#complete_common_string()

" Recommended key-mappings
" <CR>: close popup and save indent.
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>"
" For no inserting <CR> key.
"return pumvisible() ? "\<C-y>" : "\<CR>"
endfunction
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"

" Add copy/paste/cut mappings
:inoremap <C-v> <ESC>"+pa
:vnoremap <C-c> "+y

0 comments on commit 8f7946c

Please sign in to comment.
You can’t perform that action at this time.