1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
local config = function()
require("neoconf").setup({})
local cmp_nvim_lsp = require("cmp_nvim_lsp")
-- vim.lsp.enable({ “pyright”, “bashls” })
-- local lspconfig = require("lspconfig")
local capabilities = cmp_nvim_lsp.default_capabilities()
-- python
-- lspconfig.pyright.setup({
-- capabilities = capabilities,
-- on_attach = on_attach,
-- settings = {
-- pyright = {
-- disableOrganizeImports = false,
-- analysis = {
-- useLibraryCodeForTypes = true,
-- autoSearchPaths = true,
-- diagnosticMode = "workspace",
-- autoImportCompletions = true,
-- },
-- },
-- },
-- })
-- bash
-- lspconfig.bashls.setup({
-- capabilities = capabilities,
-- on_attach = on_attach,
-- filetypes = { "sh" },
-- })
end
return {
"neovim/nvim-lspconfig",
config = config,
lazy = false,
dependencies = {
"windwp/nvim-autopairs",
"williamboman/mason.nvim",
"hrsh7th/nvim-cmp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-nvim-lsp",
},
}
|