Skip to content

saccarosium/yegappan-lsp-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim Settings

This is a sets of preconfigured lsp settings for 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 for keeping default configuration up to date and sensible

Installation

" 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.

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

About

Quickstart configs for yeggapan lsp client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published