mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-12-28 09:13:59 +00:00
Compare commits
1 Commits
8a080e4388
...
ea1ebf8dcd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea1ebf8dcd |
23
init.lua
23
init.lua
@ -705,19 +705,14 @@ require('lazy').setup({
|
|||||||
})
|
})
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
require('mason-lspconfig').setup {
|
-- Handle LSP setups
|
||||||
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
|
-- See :help vim.lsp.enable
|
||||||
automatic_installation = false,
|
for server, config in pairs(servers) do
|
||||||
handlers = {
|
vim.lsp.config(server, config)
|
||||||
function(server_name)
|
vim.lsp.enable(server)
|
||||||
local config = servers[server_name] or {}
|
end
|
||||||
vim.lsp.config(server_name, config)
|
|
||||||
vim.lsp.enable(server_name)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- NOTE: Some servers still require the nvim-lspconfig setup until they are updated
|
-- NOTE: Some servers still require the nvim-lspconfig setup until they are updated
|
||||||
-- Add this template inside the handler function after initializing config if you encounter issues with any lsp
|
-- Use this template inside the for loop if you encounter issues with an lsp
|
||||||
--
|
--
|
||||||
-- if server == 'example_server' or server == 'example_server2' then
|
-- if server == 'example_server' or server == 'example_server2' then
|
||||||
-- -- This handles overriding only values explicitly passed
|
-- -- This handles overriding only values explicitly passed
|
||||||
@ -726,7 +721,9 @@ require('lazy').setup({
|
|||||||
-- local capabilities = require('blink.cmp').get_lsp_capabilities()
|
-- local capabilities = require('blink.cmp').get_lsp_capabilities()
|
||||||
-- config.capabilities = vim.tbl_deep_extend('force', {}, capabilities, config.capabilities or {})
|
-- config.capabilities = vim.tbl_deep_extend('force', {}, capabilities, config.capabilities or {})
|
||||||
-- require('mason-lspconfig')[server].setup(config)
|
-- require('mason-lspconfig')[server].setup(config)
|
||||||
-- return
|
-- else
|
||||||
|
-- vim.lsp.config(server, config)
|
||||||
|
-- vim.lsp.enable(server)
|
||||||
-- end
|
-- end
|
||||||
--
|
--
|
||||||
-- LSP servers and clients are able to communicate to each other what features they support.
|
-- LSP servers and clients are able to communicate to each other what features they support.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user