An open API service indexing awesome lists of open source software.

https://github.com/saccarosium/yegappan-lsp-settings

Quickstart configs for yeggapan lsp client
https://github.com/saccarosium/yegappan-lsp-settings

Last synced: 30 days ago
JSON representation

Quickstart configs for yeggapan lsp client

Awesome Lists containing this project

README

        

# Vim Settings

This is a sets of preconfigured lsp settings for [yegappan/lsp](https://github.com/yegappan/lsp) client.

## Features

- Setup some common keybindings (see `:h lsp-settings-buffer-mappings`)
- Preconfigured lsp settings with ability to easily ovverride settings when
need it
- Pulls directly from [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig)
for keeping default configuration up to date and sensible

## Installation

```vim
" Vim plug
Plug 'saccarosium/yegappan-lsp-settings'
" Minpac
call minpac#add('saccarosium/yegappan-lsp-settings')
```

## How to use

Every language server configuration is exposed to the user as a function with
optional configuration overwriting. To see a list of available servers read `:h
lsp-settings-server-list` or visit [nvim-lspconfig repo](https://github.com/neovim/nvim-lspconfig/tree/master/doc).

```vim
function! s:lsp_init() abort
call lsp_settings#Clangd()
" Overwrite `lsp-cfg-filetype` to only run on c files (see `:h lsp-configuration`)
" call lsp_settings#Clangd({ 'filetype': ['c'] })
endfunction

augroup lsp
au!
au User LspSetup call s:lsp_init()
augroup end
```