Move lsp config to local file structure
This commit is contained in:
parent
e5c3bb2492
commit
20801272fc
383 changed files with 11829 additions and 114 deletions
20
.config/nvim/lsp/cds_lsp.lua
Normal file
20
.config/nvim/lsp/cds_lsp.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
---@brief
|
||||
---
|
||||
--- https://cap.cloud.sap/docs/
|
||||
---
|
||||
--- `cds-lsp` can be installed via `npm`:
|
||||
---
|
||||
--- ```sh
|
||||
--- npm i -g @sap/cds-lsp
|
||||
--- ```
|
||||
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { 'cds-lsp', '--stdio' },
|
||||
filetypes = { 'cds' },
|
||||
-- init_options = { provideFormatter = true }, -- needed to enable formatting capabilities
|
||||
root_markers = { 'package.json', 'db', 'srv' },
|
||||
settings = {
|
||||
cds = { validate = true },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue