Skip to content

Support for the slint language for vim

License

Notifications You must be signed in to change notification settings

slint-ui/vim-slint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The .slint Markup Language syntax highlight for Vim

This is basic implementation of The .slint Markup Language syntax highlight for Vim.

Install

Use your favorite package manager, or install it manually.

vim-plug

Plug 'slint-ui/vim-slint'

packer.nvim

use 'slint-ui/vim-slint'

LSP

You can also setup LSP using your favorite LSP client for vim or neovim

Install LSP using cargo

cargo install slint-lsp

Setup LSP

NeoVim (>=0.5) using built-in lsp

  1. install neovim/nvim-lspconfig using your fav package manager
  2. add to your lua config
require'lspconfig'.slint_lsp.setup{}

or to your viml config

lua << EOF
require'lspconfig'.slint_lsp.setup{}
EOF

coc.nvim

  1. install neoclide/coc.nvim using your fav package manager
  2. add to your coc-settings.json (either with CocConfig or open from its path)
"languageserver": {
    "slint": {
        "filetypes": ["slint"],
        "command": "slint-lsp"
    }
}
TODO: Add instruction to install lsp w/o compiling

Formatting code (WIP: not yet functional)

Links

History

This plugin took the existing sixtyfps-vim plugin from RustemB (https://github.com/RustemB/sixtyfps-vim) and trivially updated that to slint.

About

Support for the slint language for vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published