feat(plugins): Add lwpconfig
This commit is contained in:
parent
c9c15d8ae1
commit
e6c9d72c3f
3 changed files with 7 additions and 3 deletions
nvim/ftplugin
|
@ -3,7 +3,9 @@ if vim.fn.executable('clangd') ~= 1 then
|
|||
return
|
||||
end
|
||||
|
||||
local root_files = {
|
||||
require'lspconfig'.clangd.setup{}
|
||||
|
||||
--[[ local root_files = {
|
||||
'compile_commands.json',
|
||||
'.vscode',
|
||||
'.git',
|
||||
|
@ -14,7 +16,7 @@ vim.lsp.start {
|
|||
cmd = { 'clangd' },
|
||||
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
||||
capabilities = require('user.lsp').make_client_capabilities(),
|
||||
}
|
||||
} ]]
|
||||
|
||||
local dap = require("dap")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue