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
27
.config/nvim/lsp/openscad_ls.lua
Normal file
27
.config/nvim/lsp/openscad_ls.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---@brief
|
||||
---
|
||||
--- https://github.com/dzhu/openscad-language-server
|
||||
---
|
||||
--- A Language Server Protocol server for OpenSCAD
|
||||
---
|
||||
--- You can build and install `openscad-language-server` binary with `cargo`:
|
||||
--- ```sh
|
||||
--- cargo install openscad-language-server
|
||||
--- ```
|
||||
---
|
||||
--- Vim does not have built-in syntax for the `openscad` filetype currently.
|
||||
---
|
||||
--- This can be added via an autocmd:
|
||||
---
|
||||
--- ```lua
|
||||
--- vim.cmd [[ autocmd BufRead,BufNewFile *.scad set filetype=openscad ]]
|
||||
--- ```
|
||||
---
|
||||
--- or by installing a filetype plugin such as https://github.com/sirtaj/vim-openscad
|
||||
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { 'openscad-language-server' },
|
||||
filetypes = { 'openscad' },
|
||||
root_markers = { '.git' },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue