~fluix/dotfiles

6eb94ca65b863b39d29d73c7eeea97f0b877052e — Steven Guikal a month ago 3f54d42 master
Add nvim config
2 files changed, 71 insertions(+), 0 deletions(-)

A .config/nvim/UltiSnips/html.snippets
A .config/nvim/init.vim
A .config/nvim/UltiSnips/html.snippets => .config/nvim/UltiSnips/html.snippets +29 -0
@@ 0,0 1,29 @@
priority 100

snippet "^b" "{% block %}" rbA
{% block ${1:body} %}
  $0
{% endblock %}
endsnippet

snippet "w" "{% with %}" rbA
{% with ${1:key}=${2:value} %}
  $0
{% endwith %}
endsnippet

snippet "d" "<div>" rbA
<div class="${1:class}">
  $0
</div>
endsnippet

snippet "in" "{% include %}" rbA
{% include "${1:snippet}" %}
endsnippet

snippet "if" "{% if %}" rbA
{% if ${1:condition} %}
  $0
{% endif %}
endsnippet

A .config/nvim/init.vim => .config/nvim/init.vim +42 -0
@@ 0,0 1,42 @@
set encoding=utf-8
set ruler
set showmatch
set showmode
set confirm
set number relativenumber
set guifont=Cozette\ 9
set signcolumn=yes
set inccommand=split
set termguicolors

call plug#begin('~/.vim/plugged')
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'Valloric/YouCompleteMe'
Plug 'sheerun/vim-polyglot'
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
Plug 'https://git.sr.ht/~sircmpwn/hare.vim'
Plug 'itchyny/lightline.vim'
Plug 'ghifarit53/tokyonight-vim'
call plug#end()

syntax on
filetype on
let g:lightline = {'colorscheme' : 'tokyonight'}
let g:tokyonight_enable_italic = 0
colorscheme tokyonight

set colorcolumn=80,100,120

set tabstop=2
set shiftwidth=0
set expandtab

autocmd FileType c setlocal noexpandtab tabstop=4
autocmd FileType go setlocal noexpandtab tabstop=4

let g:UltiSnipsExpandTrigger = '<s-Enter>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'

let g:python3_host_prog = '/sbin/python'