40 lines
1.0 KiB
Lua
40 lines
1.0 KiB
Lua
-- Standardkonfiguration mit Icons setzen
|
|
return {
|
|
{
|
|
"williamboman/mason.nvim",
|
|
event = "BufReadPre",
|
|
config = function()
|
|
require("mason").setup {
|
|
ui = {
|
|
icons = {
|
|
package_installed = "✓",
|
|
package_pending = "➜",
|
|
package_uninstalled = "✗"
|
|
},
|
|
},
|
|
}
|
|
end
|
|
},
|
|
{
|
|
"williamboman/mason-lspconfig.nvim",
|
|
config = function()
|
|
require("mason-lspconfig").setup({
|
|
-- Installation der LSPs für Lua, C und Python
|
|
ensure_installed = { "lua_ls", "clangd", "pylsp", "jdtls"},
|
|
})
|
|
end
|
|
},
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
local lspconfig = require("lspconfig")
|
|
lspconfig.lua_ls.setup({})
|
|
lspconfig.clangd.setup({})
|
|
lspconfig.jdtls.setup({})
|
|
-- Keybinds
|
|
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {}) -- Dokumentation hervorufen
|
|
vim.keymap.set({'n','v'}, '<leader>ka', vim.lsp.buf.code_action, {}) -- Code Action aufrufen
|
|
end
|
|
}
|
|
}
|