disable lsp for a little while
This commit is contained in:
parent
b3120bb988
commit
67991345b5
4
stow/vim/.vim/after/ftplugin/go.vim
Normal file
4
stow/vim/.vim/after/ftplugin/go.vim
Normal file
@ -0,0 +1,4 @@
|
||||
" settings
|
||||
set noexpandtab
|
||||
let g:go_auto_type_info = 1
|
||||
let g:go_imports_autosave = 1
|
||||
1
stow/vim/.vim/after/ftplugin/html.vim
Normal file
1
stow/vim/.vim/after/ftplugin/html.vim
Normal file
@ -0,0 +1 @@
|
||||
syntax sync fromstart
|
||||
1
stow/vim/.vim/after/ftplugin/markdown.vim
Normal file
1
stow/vim/.vim/after/ftplugin/markdown.vim
Normal file
@ -0,0 +1 @@
|
||||
setlocal spell
|
||||
2
stow/vim/.vim/after/ftplugin/python.vim
Normal file
2
stow/vim/.vim/after/ftplugin/python.vim
Normal file
@ -0,0 +1,2 @@
|
||||
" keymaps
|
||||
xnoremap <leader>r <esc>:'<,'>:w !python3<CR>
|
||||
@ -11,33 +11,9 @@ if has("autocmd")
|
||||
\ <= line("$") | exe "normal! g'\"" | endif
|
||||
augroup END
|
||||
|
||||
augroup filetype_bash
|
||||
autocmd! BufNewFile,BufRead *.bash call BashSettings()
|
||||
augroup END
|
||||
|
||||
augroup filetype_python
|
||||
autocmd! FileType python call PythonSettings()
|
||||
augroup END
|
||||
|
||||
augroup filetype_go
|
||||
autocmd! FileType go call GoSettings()
|
||||
augroup END
|
||||
|
||||
augroup filetype_html
|
||||
autocmd! FileType html call HtmlSettings()
|
||||
augroup END
|
||||
|
||||
augroup filetype_spell
|
||||
autocmd! FileType markdown call SpellSettings()
|
||||
augroup END
|
||||
|
||||
augroup filetype_halftab
|
||||
autocmd! FileType html,javascript,css,json,yaml,sh call HalftabSettings()
|
||||
augroup END
|
||||
|
||||
augroup lsp_install
|
||||
autocmd!
|
||||
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
|
||||
augroup END
|
||||
" augroup lsp_install
|
||||
" autocmd!
|
||||
" autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
|
||||
" augroup END
|
||||
endif
|
||||
"}}}
|
||||
|
||||
@ -44,32 +44,3 @@ function! ToggleNetrw() "make netrw toggleable <https://vi.stackexchange.com/que
|
||||
endif
|
||||
endfunction
|
||||
"}}}
|
||||
|
||||
"filetype functions
|
||||
"------------------{{{
|
||||
function BashSettings()
|
||||
set syntax=sh
|
||||
endfunction
|
||||
|
||||
function PythonSettings()
|
||||
xnoremap <leader>r <esc>:'<,'>:w !python3<CR>
|
||||
endfunction
|
||||
|
||||
function GoSettings()
|
||||
set noexpandtab
|
||||
let g:go_auto_type_info = 1
|
||||
let g:go_imports_autosave = 1
|
||||
endfunction
|
||||
|
||||
function HtmlSettings()
|
||||
syntax sync fromstart
|
||||
endfunction
|
||||
|
||||
function SpellSettings()
|
||||
setlocal spell
|
||||
endfunction
|
||||
|
||||
function HalftabSettings()
|
||||
setlocal ts=2 sts=2 sw=2 expandtab
|
||||
endfunction
|
||||
"}}}
|
||||
|
||||
@ -48,3 +48,47 @@ call plug#begin(pluginDir)
|
||||
"tables
|
||||
Plug 'godlygeek/tabular'
|
||||
call plug#end()
|
||||
|
||||
"plugin settings
|
||||
"---------------{{{
|
||||
"netrw
|
||||
let g:netrw_banner = 0
|
||||
let g:netrw_winsize = 24
|
||||
let g:netrw_liststyle = 3
|
||||
let g:netrw_preview = 1
|
||||
let g:netrw_alto = 0
|
||||
let g:netrw_usetab = 1
|
||||
let g:netrw_browsex_viewer = "xdg-open"
|
||||
let g:NetrwIsOpen = 0 "for toggle function
|
||||
let g:netrw_nogx = 1
|
||||
|
||||
"ale
|
||||
let g:ale_linters = {
|
||||
\ 'python': ['flake8'],
|
||||
\ 'javascript': ['eslint'],
|
||||
\ 'markdown': ['mdl', 'write-good']
|
||||
\}
|
||||
|
||||
let g:ale_fixers = {
|
||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||
\ 'python': ['yapf', 'black'],
|
||||
\ 'javascript': ['prettier', 'eslint'],
|
||||
\ 'css': ['prettier'],
|
||||
\ 'html': ['prettier'],
|
||||
\ 'markdown': ['prettier']
|
||||
\}
|
||||
|
||||
let g:ale_sign_error = '->'
|
||||
let g:ale_sign_warning = '--'
|
||||
let g:ale_lint_on_save = 1
|
||||
let g:ale_fix_on_save_ignore = 1
|
||||
highlight clear SignColumn
|
||||
|
||||
"vim-markdown
|
||||
let g:vim_markdown_folding_disabled = 1
|
||||
let g:vim_markdown_no_default_key_mappings = 1
|
||||
let g:vim_markdown_toc_autofit = 1
|
||||
|
||||
"vim-emmet
|
||||
let g:user_emmet_leader_key = ','
|
||||
"}}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user