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
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