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
24
.config/nvim/lsp/slint_lsp.lua
Normal file
24
.config/nvim/lsp/slint_lsp.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---@brief
|
||||
---
|
||||
--- https://github.com/slint-ui/slint
|
||||
--- `Slint`'s language server
|
||||
---
|
||||
--- You can build and install `slint-lsp` binary with `cargo`:
|
||||
--- ```sh
|
||||
--- cargo install slint-lsp
|
||||
--- ```
|
||||
---
|
||||
--- Vim does not have built-in syntax for the `slint` filetype at this time.
|
||||
---
|
||||
--- This can be added via an autocmd:
|
||||
---
|
||||
--- ```lua
|
||||
--- vim.cmd [[ autocmd BufRead,BufNewFile *.slint set filetype=slint ]]
|
||||
--- ```
|
||||
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { 'slint-lsp' },
|
||||
filetypes = { 'slint' },
|
||||
root_markers = { '.git' },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue