delete lsp stuff and change emmet filetype mapping

This commit is contained in:
James Dixon 2020-11-06 12:15:32 -05:00
parent 093c926bc0
commit d87a201074
8 changed files with 6 additions and 29 deletions

View File

@ -1,2 +0,0 @@
"vim-emmet
EmmetInstall

View File

@ -1,5 +1,4 @@
"settings "settings
set noexpandtab set noexpandtab
let g:go_auto_type_info = 1 let g:go_auto_type_info = 1
let g:go_imports_autosave = 1 let g:go_imports_autosave = 1

View File

@ -1,6 +1,3 @@
"syntax "syntax
syntax sync fromstart syntax sync fromstart
set sw=2 sts=2 ts=2 set sw=2 sts=2 ts=2
"vim-emmet
EmmetInstall

View File

@ -1,3 +1,2 @@
"settings "settings
setlocal spell setlocal spell

View File

@ -1,3 +1,2 @@
"keymaps "keymaps
xnoremap <leader>r <esc>:'<,'>:w !python3<CR> xnoremap <leader>r <esc>:'<,'>:w !python3<CR>

View File

@ -11,9 +11,9 @@ if has("autocmd")
\ <= line("$") | exe "normal! g'\"" | endif \ <= line("$") | exe "normal! g'\"" | endif
augroup END augroup END
" augroup lsp_install augroup emmet_group
" autocmd! autocmd!
" autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() autocmd FileType html,css EmmetInstall
" augroup END augroup END
endif endif
"}}} "}}}

View File

@ -19,6 +19,7 @@ nnoremap <leader>dt :r !date<CR>
"rc files "rc files
nnoremap <leader>rc :vsplit $MYVIMRC<CR> nnoremap <leader>rc :vsplit $MYVIMRC<CR>
nnoremap <leader>so :source $MYVIMRC<CR> nnoremap <leader>so :source $MYVIMRC<CR>
nnoremap <leader>ft :vsplit $HOME/.vim/after/ftplugin/<CR>
"formatting tools "formatting tools
nnoremap =j :%!python -m json.tool<CR> nnoremap =j :%!python -m json.tool<CR>
@ -49,20 +50,4 @@ nmap <leader>agd <Plug>(ale_go_to_definition)
"vim-emmet "vim-emmet
let g:user_emmet_leader_key = ',' let g:user_emmet_leader_key = ','
"lsp
function! s:on_lsp_buffer_enabled() abort
setlocal omnifunc=lsp#complete
setlocal signcolumn=yes
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
nmap <buffer> gd <plug>(lsp-definition)
nmap <buffer> gr <plug>(lsp-references)
nmap <buffer> gi <plug>(lsp-implementation)
nmap <buffer> gt <plug>(lsp-type-definition)
nmap <buffer> rn <plug>(lsp-rename)
nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
nmap <buffer> K <plug>(lsp-hover)
nmap <buffer> <leader>lf <plug>(lsp-document-format)
nmap <buffer> <leader>lst <plug>(lsp-status)
endfunction
"}}} "}}}

View File

@ -4,9 +4,9 @@
" \_/ |_|_| |_| |_|_| \___|" " \_/ |_|_| |_| |_|_| \___|"
source ~/.vim/settings.vim source ~/.vim/settings.vim
source ~/.vim/plugins.vim
source ~/.vim/functions.vim source ~/.vim/functions.vim
source ~/.vim/commands.vim source ~/.vim/commands.vim
source ~/.vim/plugins.vim
source ~/.vim/keybinds.vim source ~/.vim/keybinds.vim
source ~/.vim/colorschemes.vim source ~/.vim/colorschemes.vim
source ~/.vim/autocmds.vim source ~/.vim/autocmds.vim