Giter VIP home page Giter VIP logo

.doom.d's Introduction

简介

新建工程 cp-project-new

img/new-project.gif

补全

img/complete.gif

查看定义和引用 lsp-ui-peek-find-definitions lsp-ui-peek-find-references

img/def.gif

运行 cp-project-run

img/run.gif

调试 dap-debug

img/debug.gif

安装

安装配置文件

git clone -b develop https://github.com/hlissner/.emacs.d ~/.emacs.d
git clone https://github.com/xhcoding/doom-private.git ~/.config/doom
cd ~/.emacs.d
make all

安装补全服务端ccls

补全需要的服务端,ccls安装方法

Windows VS 工具链安装方法

  1. 第一步:安装VS2017及以上版本,安装时勾选上CMake
  2. 第二步:编译 clang及lldb(为了使用lldb-vscode 调试)

打开 适用于VS2017的x64本机工具命令提示 这个cmd

// 下载源码
git clone https://mirrors.tuna.tsinghua.edu.cn/git/llvm/llvm.git
git clone https://mirrors.tuna.tsinghua.edu.cn/git/llvm/clang.git llvm/tools/clang
git clone https://mirrors.tuna.tsinghua.edu.cn/git/llvm/lldb.git llvm/tools/lldb
// 进入目录
cd llvm
// 编译
cmake -H. -BRelease -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DLLVM_TARGETS_TO_BUILD=X86
ninja -C Release clangFormat clangFrontendTool clangIndex clangTooling clang lldb
  1. 第三步:编译 ccls
// 下载代码
git clone  --recursive https://github.com/MaskRay/ccls
// 生成
cmake -H. -BRelease -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang-cl -DSYSTEM_CLANG=On -DCMAKE_PREFIX_PATH="D:/Code/CCPro/llvm/Release;D:/Code/CCPro/llvm/Release/tools/clang;D:/Code/CCPro/llvm;D:/Code/CCPro/llvm/tools/clang"
// 构建
ninja -C Release

CMAKE_PREFIX_PATH 为你的llvm的目录。

最后把 ccls和lldb-vscode 放到 $PATH 里

安装调试服务端lldb-vscode

安装方法

用法

打开一个CMake 项目后先运行 M-x cp-project-refresh

  • 新建项目:M-x cp-project-new
  • 生成CMake 配置文件:M-x cp-project-gen
  • 构建项目:cp-project-build
  • 运行项目:cp-project-run

.doom.d's People

Contributors

chunjieshan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.