mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2025-01-07 18:29:09 +00:00
29 lines
495 B
Lua
29 lines
495 B
Lua
local status_ok, _ = pcall(require, "lspconfig")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
require "user.lsp.mason"
|
|
require("user.lsp.handlers").setup()
|
|
require "user.lsp.null-ls"
|
|
require "user.lsp.rust"
|
|
require "user.lsp.go"
|
|
require('go').setup()
|
|
require'lspconfig'.rust_analyzer.setup{}
|
|
|
|
local lsp = require('lsp-zero')
|
|
|
|
lsp.preset('recommended')
|
|
|
|
|
|
lsp.ensure_installed({
|
|
'tsserver',
|
|
'eslint',
|
|
'sumneko_lua',
|
|
'rust_analyzer',
|
|
'anakin_language_server'
|
|
})
|
|
|
|
lsp.nvim_workspace()
|
|
|
|
lsp.setup()
|