Skip to content

Commit

Permalink
Update lsp-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
joaothallis committed Jan 2, 2024
1 parent 9a0a345 commit 9b03021
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,24 @@ local lsp = require("lsp-zero")

lsp.preset("recommended")

lsp.ensure_installed({
"dockerls", "jsonls", "elixirls", "pylsp", "yamlls", "lua_ls", "ltex",
"clangd", "gopls"
lsp.on_attach(function(client, bufnr) lsp.default_keymaps({buffer = bufnr}) end)

require('mason').setup({})
require('mason-lspconfig').setup({
handlers = {
lsp.default_setup,
lua_ls = function()
local lua_opts = lsp.nvim_lua_ls()
require('lspconfig').lua_ls.setup(lua_opts)
end
},
ensure_installed = {
"dockerls", "jsonls", "elixirls", "pylsp", "yamlls", "lua_ls", "ltex",
"clangd", "gopls"
},
handlers = {lsp.default_setup}
})

lsp.nvim_workspace()

lsp.setup()

require"lsp_signature".setup()
Expand Down

0 comments on commit 9b03021

Please sign in to comment.