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", }, }