feat: Basic working config
- Added copilot - Disabled nvim-navic (errors out when copilot-cmp is enabled) - Added clangd - Added packages for nvim-dap
This commit is contained in:
parent
e2cff543d6
commit
5a85ef99ff
8 changed files with 61 additions and 6 deletions
nvim/ftplugin
18
nvim/ftplugin/c.lua
Normal file
18
nvim/ftplugin/c.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- Exit if the language server isn't available
|
||||
if vim.fn.executable('clangd') ~= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
local root_files = {
|
||||
'compile_commands.json',
|
||||
'.vscode',
|
||||
'.git',
|
||||
}
|
||||
|
||||
vim.lsp.start {
|
||||
name = 'clangd',
|
||||
cmd = { 'clangd' },
|
||||
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
||||
capabilities = require('user.lsp').make_client_capabilities(),
|
||||
-- capabilities = { offsetEncoding = "utf-8" },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue