Skip to content

Instantly share code, notes, and snippets.

@wingyplus
Created May 11, 2020 04:16
Show Gist options
  • Save wingyplus/18d85bf3080f974d6a5f73417aa40a58 to your computer and use it in GitHub Desktop.
Save wingyplus/18d85bf3080f974d6a5f73417aa40a58 to your computer and use it in GitHub Desktop.
A sample configuration for LSP
call plug#begin()
"
""" LSP
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
"
""" Language tools
Plug 'elixir-editors/vim-elixir'
call plug#end()
""" Editor
filetype plugin on
syntax on
""" LSP
let g:asynccomplete_auto_popup = 0
let g:lsp_diagnostics_enabled = 1
let g:lsp_diagnostics_float_cursor = 1
" Enable this when want to debug LSP.
let g:lsp_log_verbose = 1
let g:lsp_log_file = expand('~/vim-lsp.log')
map <C-]> :LspDefinition<CR>
map <leader>f :LspDocumentFormat<CR>
""" Elixir
autocmd FileType elixir setlocal shiftwidth=2 tabstop=2 softtabstop=2 expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment