Initial commit
This commit is contained in:
commit
e2cff543d6
29 changed files with 2701 additions and 0 deletions
nvim/lua/user
23
nvim/lua/user/lsp.lua
Normal file
23
nvim/lua/user/lsp.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
---@mod user.lsp
|
||||
---
|
||||
---@brief [[
|
||||
---LSP related functions
|
||||
---@brief ]]
|
||||
|
||||
local M = {}
|
||||
|
||||
---Gets a 'ClientCapabilities' object, describing the LSP client capabilities
|
||||
---Extends the object with capabilities provided by plugins.
|
||||
---@return lsp.ClientCapabilities
|
||||
function M.make_client_capabilities()
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
-- Add com_nvim_lsp capabilities
|
||||
local cmp_lsp = require('cmp_nvim_lsp')
|
||||
local cmp_lsp_capabilities = cmp_lsp.default_capabilities()
|
||||
capabilities = vim.tbl_deep_extend('keep', capabilities, cmp_lsp_capabilities)
|
||||
-- Add any additional plugin capabilities here.
|
||||
-- Make sure to follow the instructions provided in the plugin's docs.
|
||||
return capabilities
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue