nvim/after/plugin/lsp.lua
2023-07-12 22:31:54 +02:00

12 lines
288 B
Lua

-- language server manager (via Mason)
local lsp = require('lsp-zero').preset({})
lsp.on_attach(function(client, bufnr)
lsp.default_keymaps({buffer = bufnr})
end)
-- (Optional) Configure lua language server for neovim
require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
lsp.setup()