feat: configure blink.cmp
This commit is contained in:
parent
01a7ce066a
commit
5119403850
6 changed files with 57 additions and 4 deletions
5
init.lua
5
init.lua
|
|
@ -5,6 +5,11 @@ vim.lsp.enable({ "lua_ls", "nixd" })
|
|||
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
callback = function(ev)
|
||||
local client = vim.lsp.get_client_by_id(ev.data.client_id)
|
||||
if client and client.supports_method('textDocument/inlayHint') then
|
||||
vim.lsp.inlay_hint.enable(true, { bufnr = ev.buf })
|
||||
end
|
||||
|
||||
local opts = { buffer = ev.buf }
|
||||
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)
|
||||
vim.keymap.set("n", "<leader>gd", vim.lsp.buf.definition, opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue