Skip to content

fedorenchik/qt-support.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qt support for vim

Simple Qt support for Qt-based projects.

Installation:

Use your favourite package manager for Vim.

If you don't have a preferred installation method, I recommend using Vim's native package management support, simply copy and paste:

mkdir -p ~/.vim/pack/bundle/start
cd ~/.vim/pack/bundle/start
git clone https://github.com/fedorenchik/qt-support.vim.git

Filetypes:

  • C++
  • qmake
  • qml
  • qbs
  • qrc -- xml
  • ui -- xml
  • ts -- xml

Status:

Language File Type Detection File Type Plugin Syntax Indent Compiler Plugin
Qt C++ + (extend cpp) + (extend cpp)
qmake + + +
qml + + +
qbs + + +
qrc + (xml)
ui + (xml)
ts + (xml)

Related works:

TODO:

  • Add supported syntaxes to Syntax menu
  • QtDoc

C++ Completion for Qt

  1. Generate compile_commands.json (for example: https://github.com/rizsotto/Bear)
  2. Set up LSP server (for example: https://github.com/cquery-project/cquery)
  3. Install & use LSP client for Vim (https://github.com/autozimu/LanguageClient-neovim or https://github.com/prabirshrestha/vim-lsp)