mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -05:00
Initial Commit
This commit is contained in:
commit
fd4cc7c8e6
31 changed files with 2687 additions and 0 deletions
16
nvim/ftplugin/c.lua
Normal file
16
nvim/ftplugin/c.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
-- Exit if the language server isn't available
|
||||
if vim.fn.executable('clangd') ~= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
local root_files = {
|
||||
'.git',
|
||||
'src',
|
||||
}
|
||||
|
||||
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(),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue