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
- Host: GitHub
- URL: https://github.com/saccarosium/yegappan-lsp-settings
- Owner: saccarosium
- License: mit
- Archived: true
- Created: 2024-10-28T17:47:31.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T16:15:25.000Z (6 months ago)
- Last Synced: 2025-04-06T12:58:50.668Z (about 1 month ago)
- Language: Vim Script
- Size: 95.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vim9 - saccarosium/yegappan-lsp-settings
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'] })
endfunctionaugroup lsp
au!
au User LspSetup call s:lsp_init()
augroup end
```