Nvim: move to nvim-cmp

This commit is contained in:
Robert Kmieć
2022-12-12 01:11:27 +01:00
parent ba30d83f9e
commit 68774a8c80
8 changed files with 172 additions and 147 deletions

View File

@@ -1,13 +1,30 @@
let g:cmake_build_options = [ "-j10" ]
"let g:cmake_build_options = [ "-j10" ]
"
"let g:cmake_root_markers = ['.svn']
"
"
"let g:cmake_jump_on_error = 0 " We do not want to focus the console
"augroup vim-cmake-group
"autocmd User CMakeBuildFailed :cfirst
"augroup END
"
"augroup vim-cmake-group
"autocmd! User CMakeBuildSucceeded CMakeClose
"augroup END
let g:cmake_root_markers = ['.svn']
let g:cmake_jump_on_error = 0 " We do not want to focus the console
augroup vim-cmake-group
autocmd User CMakeBuildFailed :cfirst
augroup END
augroup vim-cmake-group
autocmd! User CMakeBuildSucceeded CMakeClose
augroup END
lua << EOF
require("cmake-tools").setup {
cmake_command = "cmake",
cmake_build_directory = "build",
cmake_generate_options = { "-D", "CMAKE_EXPORT_COMPILE_COMMANDS=1" },
cmake_build_options = {},
cmake_console_size = 10, -- cmake output window height
cmake_show_console = "always", -- "always", "only_on_error"
cmake_dap_configuration = { name = "cpp", type = "codelldb", request = "launch" }, -- dap configuration, optional
--cmake_dap_open_command = require("dap").repl.open, -- optional
cmake_variants_message = {
short = { show = true },
long = { show = true, max_length = 40 }
}
}
EOF