custom-hypr - add: nvim config

This commit is contained in:
huyjaky
2024-11-29 11:44:20 +07:00
parent ea3007a51e
commit 1380fa224b
56 changed files with 2878 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
-- Plugins to add additional functionality for LSP
return {
-- Signature help
{
"ray-x/lsp_signature.nvim",
event = "User AstroFile",
config = function()
require("lsp_signature").setup {
bind = true,
handler_opts = { border = "rounded" },
hint_enable = true,
hint_prefix = "🐼 ",
debug = true,
verbose = true,
}
end,
},
-- Additional features for Clangd
{
"p00f/clangd_extensions.nvim",
lazy = true,
ft = { "c", "cpp" },
dependencies = {
"AstroNvim/astrocore",
opts = {
autocmds = {
clangd_extensions = {
{
event = "LspAttach",
desc = "Load clangd_extensions with clangd",
callback = function(args)
if assert(vim.lsp.get_client_by_id(args.data.client_id)).name == "clangd" then
require "clangd_extensions"
vim.api.nvim_del_augroup_by_name "clangd_extensions"
end
end,
},
},
},
},
},
},
}